:root{
  --bg: #bdbdbd;          /* classic gray background */
  --card: #ffffff;
  --border: #d9d9d9;

  --text: #1f1f1f;
  --muted: #666;

  --accent: #f97316;      /* iWorQ-ish orange */
  --accent-dark: #d85f0f;

  --shadow: 0 10px 28px rgba(0,0,0,0.20);
  --radius: 18px;
  --pill: 999px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

.page{
  min-height: 100vh;
  display:flex;
  align-items: center;
  justify-content: center;
  padding: 36px 18px;
}

.shell{
  width: min(980px, 100%);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 44px;
}

.logoRow{
  display:flex;
  justify-content: center;
  margin-bottom: 18px;
}
.logo{
  height: 48px;
  width: auto;
}

.sessionBar{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-top: 8px;
  padding: 12px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafafa;
}

.sessionLabel{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.sessionValue{
  font-size: 15px;
  font-weight: 800;
}

.hint{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
  min-height: 18px;
}

.card{
  margin-top: 18px;
  padding-top: 6px;
}

.hidden { display: none !important; }

.title{
  margin: 6px 0 14px;
  font-size: 18px;
  font-weight: 900;
}

.subTitle{
  margin: 6px 0 12px;
  font-size: 16px;
  font-weight: 900;
}

.paragraph{
  font-size: 14px;
  color: #2b2b2b;
  line-height: 1.5;
  margin-bottom: 14px;
}

.form{
  margin-top: 10px;
}

.formRow{
  display:flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.formLabel{
  width: 160px;
  font-weight: 800;
  font-size: 14px;
  color: #2b2b2b;
}

.req{
  color: var(--accent);
}

.textarea{
  flex: 1;
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font);
  font-size: 14px;
  outline: none;
}

.textarea:focus{
  border-color: rgba(249,115,22,0.65);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
}

.divider{
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0;
}

.qRow{
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.qText{
  font-weight: 800;
  font-size: 14px;
  color: #2b2b2b;
}

.qControls{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.radioPill{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: #fff;
  cursor:pointer;
  user-select:none;
  font-weight: 800;
  font-size: 13px;
}

.radioPill input{
  accent-color: var(--accent);
}

.policy{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.policyWarn{
  margin-top: 10px;
  color: #2b2b2b;
}

.actions{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.btnPrimary{
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--accent);
  color:#fff;
  font-weight: 900;
  cursor:pointer;
}

.btnPrimary:hover{
  background: var(--accent-dark);
}

.btnPrimary:disabled{
  opacity: .55;
  cursor: not-allowed;
}

.btnSecondary{
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 16px;
  background: #fff;
  color: #2b2b2b;
  font-weight: 900;
  cursor:pointer;
}
.btnSecondary:hover{
  background: #f5f5f5;
}

.fileInput{
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  background:#fff;
  font-size: 13px;
}

.msg{
  font-size: 13px;
  color: var(--muted);
}

/* uploads list */
.uploads{
  margin-top: 14px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}

.uploadItem{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}

.fileRow{
  display:flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fileName{
  font-weight: 900;
}
.small{
  font-size: 12px;
  color: var(--muted);
}

.progressOuter{
  height: 10px;
  border-radius: var(--pill);
  background: #e9e9e9;
  overflow:hidden;
  margin-top: 10px;
}
.progressInner{
  height: 100%;
  width: 0%;
  background: var(--accent);
}

.statusOk{ color: #1f7a3a; font-weight: 900; }
.statusBad{ color: #b42318; font-weight: 900; }

.footer{
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.linkBtn{
  border: none;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-weight: 900;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------------- Modal (improved styling) ---------------- */
.modalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 9999;
}

.modalCard{
  width: min(860px, 100%);
  max-height: 88vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modalHeader{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid #ececec;
  background: linear-gradient(#ffffff, #fbfbfb);
}

.modalTitle{
  font-size: 18px;
  font-weight: 950;
  color: #111;
  letter-spacing: 0.2px;
}

.modalSub{
  margin-top: 4px;
  font-size: 13px;
  color: #666;
  line-height: 1.35;
}

.modalClose{
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 12px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background .15s ease, transform .06s ease;
}
.modalClose:hover{ background:#f6f6f6; }
.modalClose:active{ transform: scale(0.98); }

/* “document” body */
.modalBody{
  padding: 18px 22px 22px;
  overflow: auto;
  line-height: 1.6;
  color: #1f1f1f;
  font-size: 14px;
  background: #fcfcfc;
}

/* nicer paragraphs */
.modalBody p{
  margin: 0 0 14px;
}

/* headings inside your existing <p><strong>...</strong><br>... pattern */
.modalBody p > strong{
  display: block;
  font-size: 14.5px;
  font-weight: 950;
  color: #111;
  margin-bottom: 6px;
}

/* the very first “DATA CONVERSION…” header */
.modalBody p:first-child > strong{
  font-size: 15.5px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* italic line under the first heading */
.modalBody p:first-child em{
  display: inline-block;
  color: #555;
  margin-top: 2px;
}

/* lists */
.modalBody ul{
  margin: 8px 0 16px 22px;
  padding: 0;
}
.modalBody li{
  margin: 8px 0;
  color: #222;
}

.modalBody > p > strong::after{
  content: "";
  display: block;
  height: 1px;
  background: #ececec;
  margin-top: 10px;
}


/* footer */
.modalFooter{
  padding: 14px 22px;
  border-top: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
}

.policyAck{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #222;
}

.policyAck input{
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}


/* -------- Policy initials UI -------- */
.policyLead p{ margin: 0 0 8px; }
.policyInitialHint{
  font-size: 13px;
  color: #555;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 12px 0 16px;
}

.policySection{
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 14px 6px;
  margin: 12px 0;
}

.policySectionHdr{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.policySectionTitle strong{
  font-size: 14.5px;
  font-weight: 950;
}

.initialBox{
  display:flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 12px;
  color: #444;
  font-weight: 800;
}

.initialBox input{
  width: 92px;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  outline: none;
  background: #fff;
}

.initialBox input:focus{
  border-color: rgba(249,115,22,0.75);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.18);
}

.initialBox input.invalid{
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180,35,24,0.14);
}

.policyError{
  margin: 0;
  font-size: 13px;
  color: #b42318;
  font-weight: 700;
}

.policyFooterLeft{
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

/* Accessibiltiy */
.btnPrimary:focus-visible,
.btnSecondary:focus-visible,
.modalClose:focus-visible,
.linkBtn:focus-visible,
.initialBox input:focus-visible,
.textarea:focus-visible{
  outline: 3px solid rgba(249,115,22,0.35);
  outline-offset: 2px;
}


/* responsive */
@media (max-width: 720px){
  .shell{ padding: 22px 18px; }
  .formLabel{ width: 100%; }
  .qRow{ align-items: flex-start; flex-direction: column; }
  .qControls{ justify-content: flex-start; }
}

@media (max-width: 520px){
  .modalOverlay{ padding: 14px; }
  .modalHeader{ padding: 14px 16px; }
  .modalBody{ padding: 14px 16px 16px; }
  .modalFooter{ padding: 12px 16px; }
}
