* {
  box-sizing: border-box;
}

body,
input,
select,
textarea,
button,
code,
pre {
  font-family: "Times New Roman", Times, Georgia, serif;
}

body {
  margin: 0;
  padding: 20px 16px 40px;
  background-color: #ffffff;
  color: #111111;
  font-size: 16px;
  line-height: 1.5;
}

.page-wrap {
  max-width: 820px;
  margin: 0 auto;
}

a {
  color: #0000ee;
  text-decoration: underline;
}

a:visited {
  color: #551a8b;
}

a:hover {
  background-color: #efefef;
}

a:active {
  color: #cc0000;
}

hr {
  border: 0;
  border-top: 1px solid #999999;
  margin: 14px 0;
}

hr.double-rule {
  border-top: 3px double #000080;
  margin: 10px 0 14px;
}

.masthead {
  text-align: center;
  color: #000080;
  padding: 4px 0;
}

.masthead-title {
  margin: 0;
  font-size: 23px;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.25;
}

.masthead-title .init {
  font-size: 30px;
}

.masthead-sub {
  margin: 4px 0 2px;
  font-size: 15px;
  font-weight: bold;
}

.masthead-meta {
  margin: 2px 0 0;
  font-size: 13px;
  font-style: italic;
  color: #222222;
}

.top-nav {
  background-color: #eeeeee;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  padding: 5px 8px;
  margin: 10px 0 18px;
  font-size: 14px;
  text-align: center;
}

.top-nav a,
.top-nav .nav-current {
  margin: 0 11px;
  white-space: nowrap;
}

.top-nav .nav-current {
  font-weight: bold;
  color: #111111;
}

.dir-bar {
  background-color: #eeeeee;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  padding: 4px 8px;
  margin: 16px 0 8px;
  font-size: 14.5px;
  font-weight: bold;
  color: #000080;
}

.two-col {
  display: table;
  width: 100%;
  table-layout: fixed;
  margin: 4px 0 12px;
}

.two-col-cell {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding-right: 16px;
}

.two-col-cell:last-child {
  padding-right: 0;
  padding-left: 16px;
  border-left: 1px dotted #cccccc;
}

.dir-list {
  margin: 4px 0 10px;
  padding-left: 20px;
}

.dir-list li {
  margin-bottom: 10px;
}

.dir-list .item-title {
  font-weight: bold;
}

h1.doc-title {
  margin: 6px 0 10px;
  font-size: 21px;
  color: #000080;
}

h2.sec-heading {
  margin: 20px 0 8px;
  padding: 4px 8px;
  background-color: #eeeeee;
  border-top: 1px solid #cccccc;
  border-bottom: 1px solid #cccccc;
  font-size: 15px;
  font-weight: bold;
  color: #000080;
}

p {
  margin: 0 0 10px;
}

ul.plain-list {
  margin: 6px 0 12px;
  padding-left: 22px;
}

ul.plain-list li {
  margin-bottom: 6px;
}

code,
.cfr {
  font-size: 14.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

code {
  background-color: #f4f4f4;
  padding: 1px 4px;
  border: 1px solid #dddddd;
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}

table.data-table th,
table.data-table td {
  border: 1px solid #cccccc;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

table.data-table th {
  background-color: #eeeeee;
  font-size: 14px;
  color: #000080;
}

.notice-box {
  border: 1px solid #cccccc;
  background-color: #f9f9f9;
  padding: 9px 12px;
  margin: 14px 0;
  font-size: 14.5px;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

.gate-toggle {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.intake-gate {
  border: 2px solid #000080;
  background-color: #f7f7f7;
  padding: 14px 16px;
  margin: 14px 0 18px;
}

.intake-gate legend {
  font-size: 15px;
  font-weight: bold;
  color: #000080;
  padding: 0 6px;
}

.intake-grid {
  display: table;
  width: 100%;
  margin: 8px 0 10px;
}

.intake-cell {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding-right: 12px;
}

.intake-cell:last-child {
  padding-right: 0;
}

.gate-actions {
  margin-top: 10px;
  font-size: 14px;
}

.gate-btn {
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: bold;
  color: #000080;
  background-color: #e4e4e4;
  border: 2px outset #aaaaaa;
  user-select: none;
  pointer-events: none;
  opacity: 0.45;
  cursor: not-allowed;
}

.gate-hint {
  display: inline-block;
  margin-left: 10px;
  color: #555555;
  font-size: 13.5px;
}

.gate-status {
  display: none;
  margin-left: 10px;
  color: #000080;
  font-size: 13.5px;
  font-weight: bold;
}

.cbss-form:has(#applicant-name:valid):has(#applicant-email:valid) .gate-btn {
  pointer-events: auto;
  opacity: 1;
  cursor: pointer;
}

.cbss-form:has(#applicant-name:valid):has(#applicant-email:valid) .gate-btn:hover {
  background-color: #dcdcdc;
}

.cbss-form:has(#applicant-name:valid):has(#applicant-email:valid) .gate-hint {
  display: none;
}

.form-body {
  display: none;
}

.cbss-form:has(#applicant-name:valid):has(#applicant-email:valid):has(#gate-open:checked) .form-body {
  display: block;
}

.cbss-form:has(#applicant-name:valid):has(#applicant-email:valid):has(#gate-open:checked) .gate-btn {
  display: none;
}

.cbss-form:has(#applicant-name:valid):has(#applicant-email:valid):has(#gate-open:checked) .gate-status {
  display: inline-block;
}

.form-toc {
  background-color: #f4f4f4;
  border: 1px solid #cccccc;
  padding: 10px 14px;
  margin: 12px 0 18px;
  font-size: 14px;
  line-height: 1.55;
}

.form-toc strong {
  display: block;
  margin-bottom: 4px;
  color: #000080;
}

.form-toc-grid {
  columns: 2;
  column-gap: 20px;
  margin: 0;
  padding-left: 18px;
}

.form-section {
  border: 1px solid #cccccc;
  padding: 12px 14px 14px;
  margin: 0 0 18px;
  background-color: #ffffff;
}

.form-section > legend {
  background-color: #eeeeee;
  border: 1px solid #cccccc;
  padding: 3px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #000080;
}

.field-group {
  margin: 0 0 12px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label {
  display: block;
  font-size: 14.5px;
  font-weight: bold;
  color: #111111;
  margin-bottom: 4px;
}

.field-help {
  display: block;
  font-size: 13.5px;
  color: #444444;
  font-style: italic;
  margin-bottom: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 5px 7px;
  border: 1px solid #888888;
  background-color: #ffffff;
  color: #111111;
  font-size: 14.5px;
  line-height: 1.4;
}

textarea {
  min-height: 74px;
  resize: vertical;
  font-size: 14.5px;
}

input[type="text"].inline-input,
input[type="date"].inline-input,
input[type="number"].inline-input {
  width: auto;
  min-width: 130px;
  padding: 2px 5px;
  font-size: 13px;
  margin: 0 4px;
}

input[type="text"].short-input,
input[type="number"].short-input {
  width: 90px;
  min-width: 70px;
}

.check-list {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
}

.check-list li {
  margin-bottom: 6px;
  font-size: 14.5px;
}

.check-list ul {
  list-style: none;
  margin: 4px 0 6px 22px;
  padding: 0;
}

.check-inline {
  display: inline-block;
  margin-right: 14px;
  margin-bottom: 4px;
  font-size: 14.5px;
}

input[type="checkbox"],
input[type="radio"] {
  margin-right: 5px;
  vertical-align: middle;
}

.grid-2 {
  display: table;
  width: 100%;
  table-layout: fixed;
}

.grid-2-col {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  padding-right: 12px;
}

.grid-2-col:last-child {
  padding-right: 0;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 10px;
  font-size: 13px;
}

.form-table th,
.form-table td {
  border: 1px solid #bbbbbb;
  padding: 5px 6px;
  text-align: left;
  vertical-align: top;
}

.form-table th {
  background-color: #eeeeee;
  font-size: 13.5px;
  color: #000080;
}

.form-table input[type="text"],
.form-table select {
  padding: 3px 5px;
  font-size: 13.5px;
}

.internal-block {
  background-color: #f4f4f4;
  border: 1px dashed #888888;
  padding: 10px 14px;
  margin: 16px 0;
  font-size: 13.5px;
  color: #444444;
}

.submit-bar {
  border: 2px solid #000080;
  background-color: #f4f4f4;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14.5px;
}

.btn-submit,
.btn-reset {
  padding: 7px 18px;
  font-size: 14.5px;
  font-weight: bold;
  cursor: pointer;
  border: 2px outset #aaaaaa;
  background-color: #e4e4e4;
  color: #000080;
  margin-right: 10px;
}

.btn-reset {
  font-weight: normal;
  color: #333333;
}

.btn-submit:hover,
.btn-reset:hover {
  background-color: #d8d8d8;
}

.site-footer {
  margin-top: 22px;
  font-size: 13px;
  color: #555555;
  text-align: center;
  line-height: 1.6;
}

.site-footer p {
  margin: 2px 0;
}

@media (max-width: 660px) {
  body {
    padding: 12px 10px 28px;
  }

  .masthead-title {
    font-size: 18px;
  }

  .masthead-title .init {
    font-size: 23px;
  }

  .two-col,
  .two-col-cell,
  .intake-grid,
  .intake-cell,
  .grid-2,
  .grid-2-col {
    display: block;
    width: 100%;
  }

  .two-col-cell,
  .intake-cell,
  .grid-2-col {
    padding-right: 0;
    margin-bottom: 8px;
  }

  .form-toc-grid {
    columns: 1;
  }

  .two-col-cell:last-child {
    padding-left: 0;
    border-left: 0;
  }

  .table-scroll {
    overflow-x: auto;
  }
}

@media print {
  .top-nav,
  .gate-actions,
  .submit-bar {
    display: none;
  }
  .form-body {
    display: block !important;
  }
  a {
    color: #000000;
    text-decoration: none;
  }
}
