* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  font-family: "Hiragino Sans", "Helvetica Neue", Arial, sans-serif;
  background: #fff7ec;
  color: #3a2c1a;
  margin: 0;
  padding: 24px 16px;
}

main {
  max-width: 420px;
  margin: 0 auto;
}

h1 {
  font-size: 1.6rem;
  text-align: center;
}

.lead {
  text-align: center;
  color: #6b5a45;
  margin-bottom: 24px;
}

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

.field span {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d8c6a8;
  border-radius: 8px;
  font-size: 1rem;
}

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

button {
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  background: #e2543b;
  border: none;
  border-radius: 999px;
  cursor: pointer;
}

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

.status {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.status.success {
  background: #e3f3df;
  color: #2c6e2f;
}

.status.error {
  background: #fbe4e1;
  color: #a3372a;
}

.status.loading {
  background: #eee;
  color: #555;
}

.photo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.secondary-btn {
  background: #e2543b;
}

.file-fallback {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: #6b5a45;
  text-decoration: underline;
  cursor: pointer;
}

.file-fallback input {
  display: none;
}

.camera-view {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.camera-view video {
  display: block;
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
}

.camera-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
}

.camera-controls .spacer {
  width: 60px;
}

.shutter-btn {
  width: 60px;
  height: 60px;
  padding: 0;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #e2543b;
  flex: none;
}

.shutter-btn:active {
  background: #e2543b;
}

.text-btn {
  width: auto;
  background: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: normal;
  padding: 6px 10px;
}

.photo-preview {
  text-align: center;
  margin-bottom: 10px;
}

.photo-preview img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #d8c6a8;
  margin-bottom: 8px;
  background: #f3ece0;
}

.photo-preview .text-btn {
  width: auto;
  background: none;
  color: #a3372a;
  text-decoration: underline;
}
