* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  background: #edf7ff;
  color: #1f2329;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: 0;
  background-color: #edf7ff;
  background-image: url("/assets/rybh-oncology-coproduction-bg.jpg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto 100vh;
}
body::after {
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0.42) 18%,
    rgba(255, 255, 255, 0.50) 72%,
    rgba(255, 255, 255, 0.24) 100%
  );
}
.page {
  position: relative;
  z-index: 2;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(118px, 14vh, 156px) 14px clamp(150px, 18vh, 204px);
}
.form-card {
  background: #fff;
  border: 1px solid #e5e6eb;
  border-radius: 6px;
  padding: 18px 16px;
}
h1 {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 600;
}
h2 {
  margin: 18px 0 10px;
  font-size: 16px;
  font-weight: 600;
}
.section { display: grid; gap: 14px; }
label, fieldset {
  display: grid;
  gap: 7px;
  margin: 0;
  border: 0;
  padding: 0;
  font-weight: 500;
}
legend { padding: 0 0 8px; font-weight: 500; }
span { color: #d83931; margin-left: 2px; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  padding: 9px 11px;
  font: inherit;
  background: #fff;
}
textarea { resize: vertical; }
.radio, .checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}
.radio input, .checkbox input { width: 18px; min-height: 18px; }
.options {
  display: grid;
  gap: 6px;
}
.option {
  text-align: left;
  border: 1px solid #dcdfe6;
  background: #fff;
  border-radius: 4px;
  padding: 9px 10px;
  font: inherit;
}
.option:hover, .option.selected {
  border-color: #3370ff;
  color: #245bdb;
}
.message {
  min-height: 24px;
  color: #245bdb;
  line-height: 1.5;
}
.status-banner {
  margin: 0 0 14px;
  border: 1px solid #b7d6ff;
  border-radius: 4px;
  background: #f0f6ff;
  color: #245bdb;
  padding: 10px 12px;
  line-height: 1.5;
}
.status-banner.success {
  border-color: #a9d5b5;
  background: #f0faf2;
  color: #237b3c;
}
.status-banner.error {
  border-color: #f0b6b3;
  background: #fff2f1;
  color: #d83931;
}
.readonly-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.readonly-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid #eff0f1;
}
.readonly-label {
  color: #646a73;
  margin: 0;
}
.readonly-value {
  overflow-wrap: anywhere;
}
.primary-link {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 44px;
  border-radius: 4px;
  background: #3370ff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}
.signback-form {
  margin-top: 18px;
}
.message.error { color: #d83931; }
button[type="submit"], #create-batch {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: #3370ff;
  color: #fff;
  font: inherit;
  font-weight: 600;
}
.submission-list {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}

@media (max-width: 640px) {
  body::before {
    background-position: center top;
    background-size: 100% auto;
  }
  body::after {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.40) 18%,
      rgba(255, 255, 255, 0.48) 72%,
      rgba(255, 255, 255, 0.22) 100%
    );
  }
  .page {
    padding-top: 96px;
    padding-bottom: 156px;
  }
}
