
  /* Reset and base */
  * {
    box-sizing: border-box;
  }
  body {
    background: linear-gradient(to right, #003366, #0066cc);
    font-family: 'Arial', sans-serif;
    font-size: 12px;
    line-height: 1.3;
    color: #000;
    margin: 0;
    padding: 20px;
  }
  h1,h2,h3,h4,h5 {
    margin: 0;
  }
  input[type="text"], input[type="date"], input[type="email"] {
    font-family: inherit;
    font-size: 12px;
    padding: 2px 4px;
    border: 1px solid #444;
    outline: none;
  }
  input[type="checkbox"] {
    width: 13px;
    height: 13px;
    vertical-align: middle;
  }

  form {
    background: white;
    max-width: 900px;
    margin: auto;
    padding: 15px 15px;
    border: 1px solid #222;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
  }
  .header-section {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid black;
    padding-bottom: 5px;
    margin-bottom: 12px;
  }
  .header-left {
    width: 70%;
  }
  .header-left p {
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  .header-left h1 {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 4px;
  }
  .header-left h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  .header-right {
    width: 28%;
    border: 1.5px solid black;
    height: 80px;
    text-align: center;
    font-weight: 600;
    font-size: 11px;
    padding-top: 28px;
  }

  /* Sections */
  section {
    margin-bottom: 20px;
  }
  label.section-title {
    font-weight: 700;
    font-size: 13px;
    display: inline-block;
    padding: 3px 6px;
    margin-bottom: 6px;
    border: 1px solid #000;
    width: 100%;
  }

  /* Table-like grid for easy layout */
  .table-grid {
    display: grid;
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #222;
  }
  .table-grid > div {
    border-bottom: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding: 5px 6px;
    font-size: 11px;
  }
  .table-grid > div:nth-child(4n) {
    border-right: none;
  }
  .table-grid > div:last-child {
    border-bottom: none;
  }

  /* Column titles */
  .table-header {
    background: #ddd;
    font-weight: 700;
    border-bottom: 2px solid #000;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  /* Small fixed widths for some columns */
  .col-small {
    width: 30px;
    text-align: center;
  }
  .col-medium {
    width: 150px;
  }
  .col-large {
    width: 280px;
  }

  /* Form elements */
  input.full-input {
    width: 100%;
    font-weight: 500;
  }
  input.inline-checkbox {
    margin-left: 4px;
    margin-right: 6px;
    vertical-align: middle;
  }
  .checkbox-label {
    cursor: pointer;
    user-select: none;
    font-weight: 400;
  }

  /* Flex for rows of checkboxes */
  .checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
  }
  .checkbox-item {
    display: flex;
    align-items: center;
    font-size: 11.5px;
  }

  /* Signature and photo section */
  .signature-section {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    padding-top: 8px;
  }
  .signature-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  .signature-line {
    border-bottom: 1px solid black;
    height: 24px;
    margin: 6px 0 2px 0;
    width: 100%;
  }
  .signature-label {
    font-weight: 600;
    font-size: 11px;
  }

  .photo-box {
    border: 1.5px solid black;
    height: 80px;
    width: 70px;
    font-size: 10px;
    text-align: center;
    padding: 8px 4px 2px 4px;
    line-height: 1.2;
    font-weight: 600;
  }
  .photo-box + .photo-box {
    margin-top: 6px;
  }
  .photo-caption {
    font-weight: 400;
    font-style: italic;
    font-size: 10px;
    margin-top: 3px;
  }

  /* Bold/italic text stylings */
  .bold {
    font-weight: 700;
  }
  .italic {
    font-style: italic;
    font-size: 11px;
  }
  .small-note {
    font-size: 10px;
    font-style: italic;
    margin-top: 4px;
  }

  /* Section 3 grid layout (sex, civil status, employment) */
  .section3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 2fr;
  }
  .section3-block {
    border-left: 1px solid black;
    border-bottom: 1px solid black;
    border-top: 1px solid black;
    padding: 8px 10px 6px 10px;
  }
  .section3-subblock {
    margin-top: 6px;
  }

  /* Input smaller boxes for date and identifier fields */
  .small-boxes-row {
    display: flex;
    gap: 3px;
    margin-top: 3px;
  }
  .small-box {
    flex: 1;
    border: 1px solid #444;
    height: 20px;
  }
  .small-label {
    font-size: 9px;
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 0;
  }

  /* Textareas with border */
  textarea {
    width: 100%;
    border: 1px solid #444;
    font-family: inherit;
    font-size: 12px;
    padding: 5px 6px;
    resize: vertical;
  }

  /* Responsive */
  @media(max-width: 700px) {
    .header-section {
      flex-direction: column;
      align-items: flex-start;
    }
    .header-right {
      width: 100%;
      height: 60px;
      padding-top: 18px;
      margin-top: 10px;
      font-size: 10px;
    }
    .section3-grid {
      grid-template-columns: 1fr;
    }
    .signature-section {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }

  .small-boxx {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid #444;
  font-size: 11px;
  text-align: center;
  padding: 0;
}

/* Section 4 Classification checkboxes: arrange into 3 columns */
section[aria-labelledby="section4-title"] .checkbox-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}

/* Section 5 disability checkboxes: arrange into 3 columns */
section[aria-labelledby="section5-title"] .checkbox-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}


/* Section 6 cause of disability checkboxes: arrange into 3 columns */
section[aria-labelledby="section6-title"] .checkbox-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}

.checkbox-row.edu-attainment {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}

/* Section 9 */
section[aria-labelledby="section9-title"] .checkbox-row {
  justify-content: center;
  gap: 20px;
}

/* section 3 */
.section3-block > div:first-child {
  border-bottom: 1px solid #222;
  margin-bottom: 6px;
  padding-bottom: 4px;
}

.classification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1.5px solid #222;
  font-size: 11px;
}

.classification-grid .col {
  padding: 6px 12px;
  border-left: 1.5px solid #222;
}

.classification-grid .col:first-child {
  border-left: none;
}

/* section 10 */
section[aria-labelledby="section10-title"] .photo-box {
  height: 100px;
  width: 120px;
  font-size: 12px;
  padding: 8px 8px 4px 8px;
}

/*section 3 grid */
.classification {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
}

.classification .coll {
  padding: 6px 12px;
}



/* Reduce the gap between signature section and noted by */
section[aria-labelledby="section10-title"] {
  margin-bottom: 5px !important;
}

section[aria-labelledby="section10-title"] + div[style*="margin-top:15px"] {
  margin-top: 5px !important;
}

section[aria-labelledby="section10-title"] .signature-label, 
section[aria-labelledby="section10-title"] div[style*="font-weight: 600"] {
  font-size: 9px;
}


#course-name {
  height: 40px; /* adjust height as needed */
}

#scholarship-package{
  height: 40px; /* adjust height as needed */
}