:root {
  --bg: #faf7f2;
  --panel-bg: #ffffff;
  --text: #2b2420;
  --muted: #6b6055;
  --accent: #6f4e37;
  --accent-dark: #4e3626;
  --border: #e3dad0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 2rem 1.5rem 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.screen {
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 560px;
  margin: 3rem auto;
}

.card h1 {
  margin-top: 0;
  color: var(--accent-dark);
}

.muted {
  color: var(--muted);
}

.consent-card {
  max-width: 760px;
}

.consent-pdf {
  width: 100%;
  height: 60vh;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdfb;
  margin-bottom: 0.25rem;
}

.consent-pdf p {
  padding: 1rem;
  text-align: left;
}

.pdf-fallback-link {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
}

.consent-fields {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1rem;
}

@media (max-width: 560px) {
  .consent-fields {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--text);
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.small {
  font-size: 0.85rem;
}

button {
  padding: 0.7rem 1.6rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover:not(:disabled) {
  background: var(--accent-dark);
}

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

/* Progress bar */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.2s ease;
}

.progress-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

/* Clip grid */
.clip-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 720px) {
  .clip-grid {
    grid-template-columns: 1fr;
  }
}

.clip-panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.clip-panel h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent-dark);
}

.clip-panel video {
  width: 100%;
  border-radius: 8px;
  background: #000;
  display: block;
}

.clip-panel label {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Likert scales */
.likert-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.likert-instructions {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.likert-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  background: #fffdfb;
}

.likert-statement {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
}

.likert-scale {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.likert-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  color: var(--muted);
  cursor: pointer;
}

.likert-option input {
  cursor: pointer;
}

.likert-endpoints {
  display: flex;
  justify-content: space-between;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  color: var(--muted);
}

.clip-panel textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 0.75rem;
  font-family: inherit;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--text);
}

.clip-panel textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Footer / nav */
footer {
  margin: 2rem auto 0;
  display: flex;
  justify-content: center;
}
