
:root{
  --red:#c62828;
  --black:#000000;
  --ink:#111111;
  --paper:#ffffff;
  --line:#e6e6e6;
}

body{
  margin:0;
  background: radial-gradient(circle at top,#1a1a1a,#000);
  font-family: Arial, sans-serif;
  color:#f5f5f5;
}

.consentShell{
  min-height:100vh;
}

.topWrap{
  max-width:980px;
  margin: 0 auto;
  padding: 28px 16px 60px;
}

.headerRow{
  display:flex;
  gap:16px;
  align-items:stretch;
  justify-content:space-between;
  margin-bottom:16px;
}

.brandCard, .officeCard{
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(198,40,40,.35);
  border-radius: 16px;
  padding: 14px 16px;
}

.brandCard{
  flex:1 1 auto;
  display:flex;
  gap:14px;
  align-items:center;
}

.consentLogo{
  width: 210px;
  height:auto;
  display:block;
}

.brandText h1{
  margin:0;
  font-size:18px;
  letter-spacing:.02em;
}
.brandText p{
  margin:4px 0 0;
  opacity:.9;
  font-size:13px;
}

.officeCard{
  width: 320px;
  flex: 0 0 auto;
}
.officeCard .heading{
  font-weight:700;
  margin-bottom:6px;
  font-size:12px;
  letter-spacing:.02em;
}
.officeCard .line{
  font-size:12px;
  opacity:.9;
  line-height:1.35;
}

@media (max-width:860px){
  .headerRow{flex-direction:column}
  .officeCard{width:auto}
  .consentLogo{width:180px}
}

/* Paper form */
.formCard{
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  border: 1px solid #d3d3d3;
  box-shadow: 0 16px 50px rgba(0,0,0,.55);
  overflow:hidden;
}

.section{
  padding: 18px 18px 22px;
  border-top: 1px solid var(--line);
}
.section:first-child{border-top:none}

.sectionHeader{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

h2{
  margin:0;
  font-size:15px;
  padding-bottom:6px;
  border-bottom: 2px solid var(--red);
  display:inline-block;
}
.muted{color:#555}
.small{font-size:12px}

.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width:860px){ .grid2{grid-template-columns:1fr} }

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-top:10px;
}
label{
  font-size:12px;
  color:#444;
}

input, textarea{
  width:95%;
  /* padding:12px 0 12px 0; */
  padding:12px;
  /* margin:-12px; */
  border-radius: 10px;
  border:1px solid #cfcfcf;
  background:#fff;
  color:#111;
  outline:none;
}
input:focus, textarea:focus{
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(198,40,40,.18);
}

.checks{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  padding: 10px 12px;
  border:1px solid var(--line);
  border-radius: 12px;
  background:#fafafa;
}
.check{
  display:flex;
  gap:8px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid #e0e0e0;
  background:#fff;
}
.check input{width:auto; margin:0}

/* Questions table */
.tableLike{
  border:1px solid var(--line);
  border-radius: 12px;
  overflow:hidden;
}
.tableHead{
  display:grid;
  grid-template-columns: 1fr 90px 90px;
  background:#fafafa;
  border-bottom:1px solid var(--line);
}
.th{
  padding:10px 12px;
  font-size:12px;
  color:#444;
}
.row{
  display:grid;
  grid-template-columns: 1fr 90px 90px;
  border-top:1px solid #f0f0f0;
}
.row:first-child{border-top:none}
.cell{
  padding:12px 12px;
  display:flex;
  gap:10px;
}
.yn{justify-content:center; align-items:center}

/* Legal block */
.legal{
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background:#fafafa;
}
.legal p{margin:0 0 10px}
.legal p:last-child{margin-bottom:0}

/* Signature */
.sigHeader{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.canvasWrap{
  border-radius: 12px;
  border:1px dashed #999;
  background:#fff;
  overflow:hidden;
}
canvas{
  display:block;
  width:100%;
  height:auto;
  touch-action:none;
}
.btnRow{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  padding: 14px 18px;
  border-top:1px solid var(--line);
  background:#fff;
}
.btn{
  border:none;
  border-radius: 10px;
  padding: 12px 14px;
  cursor:pointer;
  font-weight:700;
}
.btn.primary{
  background: var(--red);
  color:#fff;
}
.btn.secondary{
  background:#111;
  color:#fff;
}
