/* ==========================================================================
   Jira-style typography, spacing and form controls — loaded LAST so it applies
   across every screen. Reference: Atlassian/Jira design system.

   Type scale   : 24 / 20 / 16 / 14 (body) / 12 (labels, meta) / 11 (lozenges)
   Font         : system UI stack (Segoe UI on Windows, SF on Mac, Roboto on Android)
   Controls     : 32px tall, 14px text, 2px #dfe1e6 border, 3px radius
   Spacing      : 4 / 8 / 12 / 16 / 24 px
   Colours      : text #172b4d, secondary #5e6c84 (brand blue/purple unchanged)
   ========================================================================== */

:root {
  font-family: "Montserrat", sans-serif;
  --ink: #172b4d;
  --muted: #5e6c84;
  --border: #dfe1e6;
  --j-radius: 3px;
  --j-ctl-h: 32px;
  --bs-body-font-family: var(--font-ui);
  --bs-body-font-size: 14px;
  --bs-body-line-height: 1.4286;
  --bs-body-color: #172b4d;
}

html,
body {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

/* ---- Headings ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: inherit;
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  font-size: 24px;
  line-height: 28px;
  font-weight: 600;
}

h2 {
  font-size: 20px;
  line-height: 24px;
  font-weight: 600;
}

h3 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

h4,
h5,
h6 {
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
}

/* Card / panel headings: 16px sentence-case with a slim accent bar (no shouting capitals) */
.panel h1,
.panel h2 {
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  margin: 0 0 12px;
  gap: 8px;
}

.panel h1:before,
.panel h2:before {
  width: 4px;
  height: 16px;
  border-radius: 2px;
}

/* ---- Body text ---- */
p {
  margin-top: 0;
  margin-bottom: 8px;
}

small,
.small {
  font-size: 12px;
  line-height: 16px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.muted.small,
small.muted,
.small.muted {
  font-size: 12px;
}

a {
  color: var(--blue);
}

code {
  font-size: 12px;
}

/* ---- Labels (Jira: 12px semibold, secondary colour) ---- */
.field {
  gap: 4px;
  font-size: 14px;
  color: var(--ink);
}

.form-label,
.edu-label,
.field>span:first-child {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--muted);
}

.form-label {
  margin-bottom: 4px;
}

.field .form-label {
  margin-bottom: 0;
}

.required {
  color: #de350b;
}

.form-hint,
.hint,
.char-count {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}

.error-text {
  font-size: 12px;
  line-height: 16px;
}

.success-text {
  font-size: 12px;
  line-height: 16px;
}

/* ---- Form grid spacing ---- */
.fields.row {
  --bs-gutter-x: 16px;
  --bs-gutter-y: 12px;
}

.fields {
  gap: 12px 16px;
}

.fields.row>.field {
  gap: 4px;
}

.software-row {
  gap: 8px;
  margin-bottom: 8px;
  grid-template-columns: 1fr 160px auto;
}

.edu-field {
  margin-bottom: 12px;
}

/* ---- Inputs, selects, textareas ---- */
/* Plain inputs: low specificity, so a component can still pad for an icon, set its own height, etc. */
input:where(:not([type=checkbox], [type=radio], [type=range], [type=file], [type=hidden])) {
  font-size: 14px;
  line-height: 20px;
  min-height: var(--j-ctl-h);
  padding: 5px 8px;
  border: 2px solid var(--border);
  border-radius: var(--j-radius);
  background-color: #fafbfc;
  color: var(--ink);
  box-shadow: none;
  transition: background-color .15s, border-color .15s;
}

/* The legacy sheet forces these with !important, so they need it too */
.field input:where(:not([type=checkbox], [type=radio], [type=file])),
.field select,
.field textarea,
select,
textarea,
.form-select,
.form-control {
  font-size: 14px !important;
  line-height: 20px !important;
  min-height: var(--j-ctl-h);
  padding: 5px 8px !important;
  border: 2px solid var(--border) !important;
  border-radius: var(--j-radius) !important;
  background-color: #fafbfc;
  color: var(--ink);
  box-shadow: none;
  transition: background-color .15s, border-color .15s;
}

select,
.form-select,
.field select {
  padding-right: 28px !important;
}

textarea,
textarea.form-control,
.field textarea {
  padding: 6px 8px !important;
  min-height: 72px;
}

input[type=file].form-control {
  min-height: var(--j-ctl-h);
  padding: 3px 8px !important;
}

input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,
select:hover,
textarea:hover {
  background-color: #ebecf0;
}

input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
  background-color: #fff;
  border-color: #4c9aff !important;
  box-shadow: none !important;
  outline: none;
}

input:disabled,
select:disabled,
textarea:disabled,
input[readonly] {
  background-color: #f4f5f7;
  color: #7a869a;
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder {
  color: #7a869a;
  opacity: 1;
}

/* Keyboard users always get a visible focus ring (Jira shows a 2px blue ring) */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #4c9aff !important;
  outline-offset: 2px;
}

input[type=checkbox],
input[type=radio] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.check input {
  width: 16px;
  height: 16px;
}

.chip-check {
  font-size: 14px;
  gap: 8px;
}

/* ---- Buttons (Jira: 32px, 14px/500, 3px radius) ---- */
.btn,
.btn-common,
button.primary,
.actions button,
.actions a.btn,
.actions a.primary,
.button-row a.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--j-ctl-h);
  padding: 0 12px !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  border-radius: var(--j-radius) !important;
}

.btn-common {
  padding: 0 12px !important;
}

.actions {
  gap: 8px;
  margin-top: 16px;
}

.form-column .actions {
  padding-top: 16px;
}

.actions .primary {
  min-width: 0;
}

.add {
  height: var(--j-ctl-h);
  font-weight: 500;
}

.remove,
.edu-remove {
  font-size: 12px;
  font-weight: 600;
  padding: 0 8px !important;
  height: 24px;
  display: inline-flex;
  align-items: center;
}

.link-btn {
  font-size: 14px;
}

/* ---- Cards, panels, notices ---- */
.panel {
  padding: 20px 24px;
  border-radius: 8px;
}

.panel.personal,
.panel.personal-1 {
  padding: 16px 20px;
  border-radius: 8px;
  height: auto;
  height: calc(100vh - 254px);
  ;
  overflow-y: auto;
}

.inner-card {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 8px;
}

.inner-heading {
  margin-bottom: 16px;
  font-size: 14px;
}

.notice {
  padding: 8px 12px;
  margin: 12px 0;
  font-size: 14px;
  border-radius: var(--j-radius);
}

.entry-row {
  padding: 8px 12px;
}

.edu-card {
  padding: 12px 16px 12px;
  margin-bottom: 12px;
  border-radius: 8px;
}

.edu-card-head {
  margin-bottom: 8px;
}

.edu-card-title {
  font-size: 12px;
  line-height: 16px;
}

/* ---- Lozenges / badges (Jira: 11px bold uppercase) ---- */
.pill-note,
.status-pill,
.req-badge {
  font-size: 11px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 0 6px;
  border-radius: var(--j-radius);
}

/* ---- Chips ---- */
.chip,
.suggest-chip,
.role-chip {
  font-size: 12px !important;
  line-height: 16px;
}

.chip {
  padding: 4px 8px !important;
  border-radius: var(--j-radius);
}

/* ---- Layout: step list + workspace ---- */
.workspace {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 12px;
}

.student-form-left {
  padding: 8px;
}

.student-form-left .steps li {
  min-height: 36px;
}

.student-form-left .steps li span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.student-form-left .step.active span {
  color: #5c26bc !important;
}

.student-form-left .step.active .step-number {
  color: #fff !important;
}

.step {
  gap: 6px;
  min-height: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px;
  border-radius: 5px;
}

.step.active {
  font-weight: 600;
  background-color: #f1eafb;
}

.step-number {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

/* .steps li:not(:last-child):before { left: 10px; top: 25px; height: 14px; } */
.step.active .step-number {
  box-shadow: 0 0 0 3px #dceaff;
}

main,
main.container-fluid {
  padding-top: 16px;
}

.upload-banner {
  margin-bottom: 8px;
}

/* ---- App chrome ---- */
.header nav a {
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--j-radius);
}

footer {
  font-size: 12px;
}

/* ---- Tables ---- */
table {
  font-size: 14px;
}

th {
  font-size: 12px;
  font-weight: 600;
}

td,
th {
  padding-top: 6px;
  padding-bottom: 6px;
}

/* ---- Small screens: keep inputs at 16px so iOS doesn't zoom on focus ---- */
@media (max-width: 1400px) {
  .step{
    padding: 6px;
  }
  .step-number {
    width: 27px;
    height: 27px;
  }
}
@media (max-width: 1300px) {
  .step{
    padding: 6px;
  }
    .step-number {
        width: 20px;
        height: 20px;
    }
    .student-form-left .steps li{
      min-height: 30px;
    }
}
@media (max-width: 767.98px) {

  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
  select,
  .form-select,
  .form-control,
  textarea {
    font-size: 16px !important;
    min-height: 40px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }
}