* { box-sizing: border-box; }

body {
  font-family: "Barlow Semi Condensed", sans-serif;
  background: #faf2e7;
  margin: 0;
  padding: 16px;
}

/* ---------- Background ---------- */

.page-cover {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0.1;
  z-index: -1;
}

/* ---------- Layout ---------- */

.container {
  max-width: 780px;
  margin: auto;
}

form {
  margin-top: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0px 10px rgba(50,50,50,.3);
  border: 1px solid #345A4350;
  padding: 20px;
}

/* ---------- Title Bar ---------- */

#title {
  display: flex;
  width: 100%;
  min-height: 120px;
  background-color: #0076AF;
  align-items: center;
  border-radius: 10px;
  box-shadow: 0 0px 10px rgba(50, 50, 50, .3);
  border: 1px solid #345A4350;
  padding: 16px 20px;
  overflow: hidden;
  color:white;
}

#logo {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  margin-right: 16px;
}

.title-text {
  font-weight: 700;
  font-size: clamp(20px, 4vw, 42px);
  line-height: 1.2;
  white-space: normal;
  word-break: break-word;
  flex: 1;
  text-align: center;
  color: #fff;
}

/* ---------- Labels & Inputs ---------- */

label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-top: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  margin-top: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: "Barlow Semi Condensed", sans-serif;
}

input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  height: 56px;
}

input[type="number"] {
  width: 100%;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

/* ---------- Buttons ---------- */

button {
  font-family: "Barlow Semi Condensed", sans-serif;
  font-weight: 600;
  width: 100%;
  margin-top: 16px;
  padding: 18px;
  font-size: 20px;
  border-radius: 8px;
  border: 1px solid #345A4350;
  background: #0076AF;
  color: #fff;
  cursor: pointer;
}

button.secondary {
  background: #777;
}

/* ---------- Radio Pills ---------- */

.radio-row {
  display: flex;
  gap: 18px;
  margin-top: 10px;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #345A4350;
  cursor: pointer;
  user-select: none;
  background: #f7f7f7;
  font-size: 18px;
}

.radio-pill input {
  display: none;
}

.radio-pill.active-yes {
  background: #cfeedd;
  border-color: #62b58a;
}

.radio-pill.active-no {
  background: #ffd1d1;
  border-color: #d46b6b;
}

/* ---------- Drawer ---------- */

#drawerToggle {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #ffffff;
  font-size: 22px;
  cursor: pointer;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
}

#reportDrawer {
  position: fixed;
  top: 0;
  right: -50vw;
  width: 50vw;
  max-width: 520px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 12px rgba(0,0,0,.25);
  border-left: 1px solid #345A4350;
  padding: 18px;
  overflow-y: auto;
  transition: right 0.3s ease;
  z-index: 200;
}

#reportDrawer.open {
  right: 0;
}

/* ---------- Report Cards ---------- */

.report-card {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #fafafa;
}

.report-card .topline {
  font-weight: 800;
  font-size: 16px;
  color: #0076AF;
  margin-bottom: 6px;
}

.report-card .meta {
  font-size: 14px;
  font-weight: 600;
}

.badge-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.badge.yes { background: #cfeedd; border: 1px solid #62b58a; }
.badge.no  { background: #ffd1d1; border: 1px solid #d46b6b; }
