/* Mesa scholarship quiz widget. All classes are prefixed msq- so they will not clash with the site. */
  .msq-overlay {
    --msq-cream: #FBF3D8; --msq-cream-2: #F3E6B8; --msq-ink: #2B0608; --msq-ink-2: #4A2A22;
    --msq-brand: #7A1B20; --msq-cta: #B8363C; --msq-line: #B99A8A; --msq-track: #EAD9A6;
    position: fixed; inset: 0; z-index: 10000000; /* above the site header (999999), mobile menu (9999999) and UG apply bar; below the application form popup (2147483000) */ box-sizing: border-box;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(20, 0, 2, 0.72); opacity: 0; transition: opacity 0.2s ease;
    font-family: inherit; -webkit-text-size-adjust: 100%;
  }
  .msq-overlay[hidden] { display: none; } /* without this the closed overlay still blocks clicks on the page */
  .msq-overlay *, .msq-overlay *::before, .msq-overlay *::after { box-sizing: border-box; }
  .msq-overlay.msq-is-open { opacity: 1; }
  .msq-panel {
    position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--msq-cream); color: var(--msq-ink); border-radius: 24px;
    transform: translateY(12px); transition: transform 0.25s ease;
  }
  .msq-is-open .msq-panel { transform: none; }
  .msq-handle { display: none; }
  .msq-close {
    position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px;
    border: 0; border-radius: 22px; background: transparent; color: var(--msq-ink);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .msq-body { min-height: 500px; padding: 26px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
  .msq-kicker { font-size: 13px; font-weight: 700; color: var(--msq-brand); padding-right: 44px; }
  .msq-h { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; display: block; }
  .msq-h:focus, .msq-verdict:focus { outline: none; }
  .msq-hint { margin-top: 4px; font-size: 14px; color: var(--msq-ink-2); }
  .msq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .msq-chip, .msq-opt {
    border: 1.5px solid var(--msq-line); background: transparent; color: var(--msq-ink);
    font: inherit; font-weight: 600; text-align: left; border-radius: 12px; cursor: pointer;
  }
  .msq-chip { min-height: 44px; padding: 8px 14px; font-size: 15px; line-height: 1.3; }
  .msq-chip[aria-pressed="true"] { background: var(--msq-ink); color: var(--msq-cream); border-color: var(--msq-ink); }
  .msq-opts { display: flex; flex-direction: column; gap: 8px; }
  .msq-opt { min-height: 52px; padding: 8px 16px; font-size: 16px; }
  .msq-chip:hover, .msq-opt:hover { border-color: var(--msq-ink); }
  .msq-textarea {
    width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid var(--msq-line);
    background: #FFFBEA; color: var(--msq-ink); font: inherit; font-size: 16px; line-height: 1.4; resize: none;
  }
  .msq-btn {
    min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--msq-cta); color: #FFFFFF;
    font: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 10px;
  }
  .msq-body > .msq-btn { margin-top: auto; }
  .msq-sticky.msq-sticky-end { margin-bottom: -24px; }
  .msq-overlay button:focus-visible, .msq-overlay a:focus-visible, .msq-overlay textarea:focus-visible {
    outline: 3px solid var(--msq-brand); outline-offset: 2px;
  }
  .msq-load { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 0 6px; }
  .msq-load-text { font-size: 22px; line-height: 1.25; font-weight: 700; }
  .msq-bar { height: 8px; border-radius: 4px; background: var(--msq-track); overflow: hidden; }
  .msq-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--msq-cta); transition: width 0.45s ease; }
  .msq-label { font-size: 14px; font-weight: 700; color: var(--msq-ink-2); }
  .msq-group { display: flex; flex-direction: column; gap: 8px; }
  .msq-verdict { margin: 0; font-size: 30px; line-height: 1.12; font-weight: 800; }
  .msq-see { font-size: 17px; line-height: 1.4; }
  .msq-see strong { font-weight: 800; }
  .msq-basis { font-size: 13px; line-height: 1.4; color: var(--msq-ink-2); }
  .msq-range { background: var(--msq-cream-2); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
  .msq-range-lead { font-size: 14px; color: var(--msq-ink-2); }
  .msq-range-num { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .msq-range-num b { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
  .msq-range-num span { font-size: 16px; color: var(--msq-ink-2); }
  .msq-range-fee { font-size: 15px; color: var(--msq-ink-2); }
  .msq-range-fee strong { color: var(--msq-ink); }
  .msq-move { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; line-height: 1.35; font-weight: 700; }
  .msq-move svg { flex: none; margin-top: 1px; }
  .msq-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .msq-sub { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--msq-ink-2); }
  .msq-could { font-size: 16px; line-height: 1.3; color: var(--msq-ink-2); }
  .msq-pct { margin: 4px 0; font-size: 48px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
  .msq-fee { font-size: 16px; line-height: 1.35; color: var(--msq-ink-2); }
  .msq-fee strong { color: var(--msq-ink); }
  .msq-match { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--msq-brand); }
  .msq-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .msq-list li { background: var(--msq-cream-2); border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; }
  .msq-list svg { flex: none; margin-top: 1px; }
  .msq-num { flex: none; width: 28px; height: 28px; border-radius: 14px; background: var(--msq-ink); color: var(--msq-cream); font-size: 14px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
  .msq-list li { align-items: center; }
  .msq-step-title { font-size: 15px; font-weight: 700; }
  .msq-step-text { font-size: 14px; color: var(--msq-ink-2); }
  .msq-grow { font-size: 15px; line-height: 1.4; font-weight: 700; }
  /* Must stay a direct child of .msq-body, or it cannot pin to the bottom */
  .msq-sticky {
    position: sticky; bottom: 0; z-index: 2; margin: auto -22px 0; padding: 12px 22px 16px;
    background: var(--msq-cream); box-shadow: 0 -8px 16px rgba(43, 6, 8, 0.08);
    display: flex; flex-direction: column; gap: 10px;
  }
  .msq-reco { font-size: 16px; font-weight: 700; }
  .msq-fine { font-size: 12px; line-height: 1.4; color: var(--msq-ink-2); }
  .msq-center { text-align: center; }
  .msq-error { margin-top: -8px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #9A1F25; }
  .msq-textarea[aria-invalid="true"] { border-color: var(--msq-cta); }
  .msq-q3-actions { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
  .msq-skip { align-self: center; }
  .msq-link {
    min-height: 44px; padding: 0; border: 0; background: transparent;
    color: var(--msq-brand); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer;
  }

  /* Phone: bottom sheet */
  @media (max-width: 767px) {
    .msq-overlay { align-items: flex-end; padding: 0; }
    .msq-panel {
      max-width: none; max-height: 92%; border-radius: 24px 24px 0 0; /* % of the overlay, which msq.js fits above the keyboard */
      transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom);
    }
    .msq-handle { display: flex; justify-content: center; padding: 10px 0 4px; touch-action: none; }
    .msq-handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--msq-line); }
    .msq-body { min-height: 0; padding-top: 18px; }
    /* Keyboard open (set by msq.js): use the whole visible area, tighter spacing */
    .msq-kb .msq-panel { max-height: 100%; border-radius: 16px 16px 0 0; padding-bottom: 0; }
    .msq-kb .msq-handle { display: none; }
    .msq-kb .msq-body { gap: 10px; padding: 14px 18px 10px; }
    .msq-kb .msq-kicker { font-size: 12px; }
    .msq-kb .msq-h { font-size: 19px; }
    .msq-kb .msq-hint { margin-top: 2px; font-size: 13px; }
    .msq-kb .msq-error { margin-top: -4px; font-size: 13px; }
    .msq-kb .msq-q3-actions { margin-top: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .msq-overlay, .msq-panel, .msq-bar i { transition: none; }
  }
