/* ==============================================
   DOI Forms Framework
   Clean minimalist version – October 2025
   ============================================== */

body {
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: #222;
  background-color: #fff;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

#formContainer {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

/* ------------------------------------------------
   Header
--------------------------------------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 20px;
  padding: 0px;
  margin-bottom: 1rem;	
  border-bottom: 1px solid #000;
}

header img {
  width: 360px;
  height: auto;
}

header h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  color: #000;
  border-left: 1px solid #000;
  padding-left: 15px;
}

/* ------------------------------------------------
   Headings
--------------------------------------------------- */
h2, h3, legend {
  color: #222;
  font-weight: 600;
}

h3 {
  margin-top: 30px;
  border-bottom: 2px solid #ccc;
  padding-bottom: 5px;
}

/* ------------------------------------------------
   Fieldsets, Labels, Inputs
--------------------------------------------------- */
fieldset {
  border: 1px solid #ccc;
  padding: 20px;
  margin-bottom: 30px;
}

legend {
  font-weight: 600;
  padding: 0 8px;
}

label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 6px 8px;
  margin-top: 4px;
  border: 1px solid #bbb;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 15px;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

input[type="checkbox"],
input[type="radio"] {
  vertical-align: middle;
  margin-right: 6px;
}


/* ------------------------------------------------
   Tables
--------------------------------------------------- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th,
table td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: left;
}

table th {
  background-color: #f2f2f2;
  font-weight: 600;
}

/* ------------------------------------------------
   Buttons
--------------------------------------------------- */
button {
  background-color: #00467f;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: #00325a;
}

.addRowBtn {
  background-color: #777;
  font-size: 14px;
  padding: 6px 12px;
  margin-top: 8px;
}

.addRowBtn:hover {
  background-color: #555;
}

/* ------------------------------------------------
   Signature / Attestation block
--------------------------------------------------- */
.signature-block {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.signature-block label {
  margin-top: 0;
}

.question-block {
  margin-bottom: 18px;
}

.question-block label {
  display: inline-block;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 4px;
}

.question-block input[type="radio"] {
  margin-right: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ------------------------------------------------
   Contact Block
--------------------------------------------------- */
.contact-block {
  margin-bottom: 25px;
  font-size: 14px;
  line-height: 1.4;
}

/* ------------------------------------------------
   Print Styles
--------------------------------------------------- */
@media print {
  body {
    background: #fff;
  }

  #printButtonTop,
  #printButtonBottom,
  .addRowBtn {
    display: none !important;
  }

  #formContainer {
    border: none;
    box-shadow: none;
    padding: 10px 20px;
  }

  h3 {
    border-bottom: 1px solid #aaa;
  }

  table th {
    background-color: #eee !important;
    -webkit-print-color-adjust: exact;
  }
}




/* Keep yes/no options on the same line as question text when printing */
@media print {
  .question-block {
    page-break-inside: avoid;
  }
  .question-block label {
    display: inline;
    font-weight: 500;
  }
  .question-block input[type="radio"] {
    margin-left: 10px;
    margin-right: 3px;
  }
}

