:root {
  --bg: #f8f8f8;
  --card: #ffffff;
  --text: #333;
  --muted: #777;
  --border: #b7b7b7;
  --primary: #007BFF;
  --primary-dark: #0056b3;
  --pill-bg: #f6f8fb;
  --pill-border: #cfd8e3;
  --pill-hover: #eef3f9;
  --pill-active: #e6eef8;
  --pill-selected-bg: #e7f1ff;
  --pill-selected-text: #0b3d91;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
  font-family: Arial, sans-serif;
  margin: 40px;
  background-color: var(--bg);
  color: var(--text);
}
.text-center {
    text-align: center;
}

#introForm {
  max-width: 500px;
  margin: 40px auto;
  background-color: var(--card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

#introForm h2 {
  text-align: center;
  margin-bottom: 20px;
}

.required {
  color: red;
  font-weight: bold;
  margin-left: 4px;
}

.prep-box {
  max-width: 600px;
  margin: 40px auto;
  background-color: var(--card);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  line-height: 1.6;
  display: flex;
    flex-direction: column;
    align-items: center;
}

.prep-box h2,
.prep-box h3 {
  text-align: center;
  margin-top: 20px;
}

.prep-box ul {
  padding-left: 20px;
}

.prep-box p {
  margin: 10px 0;
}

.intro-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

/* Consent Section Styling */
.consent-section {
  margin-top: 24px;
  padding: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.consent-section h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: #1a365d;
  border-bottom: 2px solid #3182ce;
  padding-bottom: 8px;
}

.consent-checkbox-wrapper {
  margin: 12px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-weight: normal;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.consent-checkbox-text {
  font-size: 14px;
  line-height: 1.5;
  color: #2d3748;
}

.consent-details {
  margin: 12px 0 16px 28px;
  padding: 12px 16px;
  background: #fff;
  border-left: 3px solid #3182ce;
  border-radius: 0 4px 4px 0;
}

.consent-details p {
  margin: 8px 0;
  font-size: 12px;
  color: #4a5568;
  line-height: 1.5;
}

.consent-details ul {
  margin: 8px 0;
  padding-left: 20px;
}

.consent-details li {
  font-size: 12px;
  color: #4a5568;
  margin: 4px 0;
  line-height: 1.4;
}

.consent-link {
  margin-top: 12px !important;
}

.consent-link a {
  color: #3182ce;
  text-decoration: none;
  font-weight: 600;
}

.consent-link a:hover {
  text-decoration: underline;
}

.consent-withdrawal {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e0;
}

.consent-withdrawal-title {
  font-weight: 600 !important;
  color: #2d3748 !important;
  margin-bottom: 4px !important;
}

.consent-withdrawal p {
  font-size: 11px;
  color: #718096;
  line-height: 1.5;
  margin: 4px 0;
}

.intro-field label {
  font-weight: bold;
}

.intro-field input,
.intro-field select {
  padding: 8px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.intro-field p {
  margin: 0;
  font-size: 12px;
  font-weight: 100;
}

.question {
  background: var(--card);
  padding: 30px;
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

td, th {
  padding: 10px 10px;
  text-align: left;
  vertical-align: middle;
}

td:first-child {
  width: 50%;
}

td:nth-child(2), td:nth-child(3), th:nth-child(2), th:nth-child(3) {
  width: 25%;
  text-align: center;
}

td:nth-child(2), th:nth-child(2) {
  border-left: 3px solid var(--border);
}

td:nth-child(3), th:nth-child(3) {
  border-left: 3px solid var(--border);
}

th {
  background-color: #efefef;
}

/* 6 klikbare Likert "pills" */
.likert-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  font-size: 12px;
  margin-bottom: 8px;
}

.likert-labels span {
  padding: 8px 10px;
  border-radius: 9999px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.likert-labels span:hover {
  background: var(--pill-hover);
  border-color: #b8c6d8;
}

.likert-labels span:active {
  background: var(--pill-active);
  border-color: #a7b9d1;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}

.likert-labels span:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

.likert-labels span.selected {
  background: var(--pill-selected-bg);
  border: 1px solid var(--primary);
  color: var(--pill-selected-text);
  font-weight: 600;
}

.submit-button {
  display: block;
  margin: 40px auto 0;
  padding: 16px 32px;
  font-size: 18px;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.submit-button:hover {
  background-color: var(--primary-dark);
}

/* Language switcher */
.lang-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: background 0.15s ease, border-color 0.15s ease;
  z-index: 1000;
}

.lang-switcher:hover {
  background: var(--pill-hover);
  border-color: var(--primary);
}

.lang-switcher svg {
  color: var(--primary);
}

@media (max-width: 768px) {
  td:first-child {
    width: auto;
  }

  .question {
    padding: 20px;
  }
}
