/* Online Admission public pages (Pages/OnlineAdmission).
   Own classes only: the nhmscNew theme (main.css) forces .card to height 450px / overflow hidden
   and .card-body to padding .25rem, so theme card classes are not used here. */

/* same width and edges as the page title bar (#contentHeader: container > row > col-md-12, 15px column padding) */
.oa-page { max-width: none; margin: 22px 0 30px 0; padding: 0 15px; }

/* step bar */
.oa-steps { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; padding: 0; margin: 0 0 18px 0; }
.oa-steps li { display: flex; align-items: center; color: #8a9a99; font-size: 13px; font-weight: 600; margin: 4px 6px; }
.oa-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #c4d3d1; background: #fff; margin-right: 6px; font-size: 12px; }
.oa-steps li.done { color: #03787c; }
.oa-steps li.done span { border-color: #03787c; background: #03787c; color: #fff; }
.oa-steps li.active { color: #024043; }
.oa-steps li.active span { border-color: #024043; background: #fff; color: #024043; }
.oa-steps li + li:before { content: ""; display: inline-block; width: 18px; height: 2px; background: #c4d3d1; margin-right: 10px; }

/* box */
.oa-box { background: #fff; border: 1px solid #d6e4e1; box-shadow: 0 2px 8px rgba(2, 64, 67, 0.08); margin-bottom: 18px; }
.oa-box-title { background: #03787c; color: #fff; font-weight: bold; padding: 10px 20px; }
.oa-box-title.center { text-align: center; }
.oa-box-body { padding: 20px 30px 6px 30px; }
.oa-box-footer { text-align: center; padding: 10px 30px 22px 30px; }

/* fields */
.oa-grid { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.oa-field { flex: 1 1 260px; padding: 0 10px; margin-bottom: 16px; }
.oa-field.full { flex-basis: 100%; }
.oa-field.small { flex: 1 1 170px; }
.oa-label { font-weight: bold; margin-bottom: 5px; }
.oa-required { color: red; font-weight: bold; }
.oa-inline label { margin-right: 15px; margin-left: 3px; font-weight: normal; }
.oa-note { color: #5b6b6a; font-size: 13px; }

/* messages and buttons */
.oa-fee { display: block; text-align: center; font-size: 16px; font-weight: bold; color: #024043; }
.oa-msg { display: block; text-align: center; margin-top: 4px; }
.oa-btn { min-width: 160px; margin: 4px 6px; }
.oa-continue { text-align: center; margin: 4px auto 20px auto; }

/* apply instruction download (AdmissionCirculars) */
.oa-instruction { text-align: center; margin: 0 0 18px 0; padding: 14px 10px 10px 10px; background: #f4f8f7; border: 1px dashed #9dbdbe; }
a.oa-btn-instruction, a.oa-btn-instruction:visited, a.oa-btn-instruction:focus { display: inline-flex; align-items: center; gap: 8px; background: #024043; color: #fff !important; font-weight: bold; padding: 9px 22px; border-radius: 22px; text-decoration: none !important; box-shadow: 0 2px 6px rgba(2, 64, 67, 0.25); transition: background .15s ease-in-out; }
a.oa-btn-instruction:hover { background: #03787c; color: #fff !important; }
.oa-instruction .oa-note { margin-top: 6px; }
a.oa-link, a.oa-link:visited, a.oa-link:focus { color: #024043; font-weight: bold; text-decoration: underline !important; }
a.oa-link:hover { color: #1c5c93; }

/* info tables */
.oa-table { width: 100%; margin-bottom: 14px; }
.oa-table td { padding: 7px 10px; border: 1px solid #e3ecea; vertical-align: top; }
.oa-table td:first-child { width: 35%; font-weight: bold; background: #f4f8f7; }
.oa-highlight { font-weight: bold; color: #024043; }

/* validation (online-admission.js): Bootstrap styles .form-control.is-invalid; radio lists and checkboxes need this */
[data-oa-required].is-invalid:not(.form-control) { display: inline-block; outline: 1px solid #dc3545; outline-offset: 4px; }
.form-inline .invalid-feedback { width: 100%; }
/* Bootstrap puts the valid/invalid icon on selects too, over the dropdown arrow: keep only the border colour */
select.form-control.is-valid, select.form-control.is-invalid { background-image: none !important; padding-right: .75rem !important; }

/* date of birth: day / month / year share one column */
.oa-dob { display: flex !important; flex-wrap: wrap; width: 100%; }
.oa-dob select.form-control { display: block; flex: 1 1 0; width: auto; min-width: 0; margin-right: 6px; padding-left: 6px; padding-right: 2px; }
.oa-dob select.oa-dob-month { flex-grow: 1.3; }
.oa-dob select:last-of-type { margin-right: 0; }
@media (max-width: 576px) {
    .oa-dob select.form-control { font-size: 14px; padding-left: 4px; margin-right: 4px; }
}
.oa-dob .invalid-feedback { flex-basis: 100%; }

/* checkbox with text (asp:CheckBox renders input + label) */
.oa-check input[type=checkbox] { margin-right: 6px; vertical-align: middle; }
.oa-check label { margin-bottom: 0; vertical-align: middle; }

/* declaration on the application form */
.oa-declaration label { color: #dc3545; font-weight: bold; }

/* Tracking ID with note */
.oa-tracking { background: #fff8e1; border: 1px solid #f0d78c; border-left: 4px solid #e0a800; padding: 10px 14px; margin-bottom: 14px; }
.oa-tracking .oa-tracking-id { font-size: 18px; font-weight: bold; color: #024043; letter-spacing: 1px; }
.oa-tracking-note { display: block; color: #7a5a00; font-size: 13px; margin-top: 3px; }

/* photo */
.oa-photo { width: 150px; height: 170px; object-fit: cover; border: 1px solid #c4d3d1; background: #f4f8f7; }
.oa-photo-empty { display: inline-flex; align-items: center; justify-content: center; color: #8a9a99; font-size: 13px; }
.oa-preview-note { color: #7a5a00; font-size: 12px; margin-top: 6px; }

@media (max-width: 576px) {
    .oa-box-body { padding: 16px 14px 4px 14px; }
    .oa-box-footer { padding: 10px 14px 18px 14px; }
    .oa-steps li + li:before { width: 8px; margin-right: 6px; }
}

/* square edges on all Online Admission pages (boxes, alerts) */
.oa-page .alert { border-radius: 0; }
