/* Second style block from original site — DPDP-specific */


/* ═══════════════════════════════════════
   NOTEBOOK ASSESSMENT — Core Styles
   ═══════════════════════════════════════ */

#nb-wrap {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #1a1208;
  font-family: 'Inter', system-ui, sans-serif;
  overflow: hidden;
}
#nb-wrap.open { display: flex; flex-direction: column; }

/* ── TOP BAR ── */
#nb-topbar {
  background: #0F0F10;
  border-bottom: 1px solid rgba(201,162,39,.20);
  padding: 10px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 16px;
}
#nb-brand {
  font-size: 13px;
  font-weight: 700;
  color: #C9A227;
  letter-spacing: .04em;
  white-space: nowrap;
}
#nb-scope-badge {
  font-size: 11px;
  color: rgba(247,245,240,.55);
  padding: 4px 12px;
  background: rgba(201,162,39,.08);
  border: 1px solid rgba(201,162,39,.18);
  border-radius: 999px;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#nb-close {
  background: none;
  border: none;
  color: rgba(247,245,240,.35);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color .18s;
  flex-shrink: 0;
}
#nb-close:hover { color: #F7F5F0; }

/* ── PROGRESS BAR ── */
#nb-progbar-wrap {
  height: 3px;
  background: rgba(201,162,39,.10);
  flex-shrink: 0;
}
#nb-progbar {
  height: 100%;
  background: linear-gradient(90deg, #C9A227, #E3C65A);
  transition: width .5s ease;
  width: 0%;
}

/* ── STAGE TABS ── */
#nb-stages {
  display: flex;
  background: #111114;
  border-bottom: 1px solid rgba(247,245,240,.06);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}
#nb-stages::-webkit-scrollbar { display: none; }
.nb-stage {
  flex-shrink: 0;
  padding: 8px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .18s;
  min-width: 0;
}
.nb-stage:hover { background: rgba(201,162,39,.05); }
.nb-stage.active { border-bottom-color: #C9A227; }
.nb-stage-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(247,245,240,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(247,245,240,.40);
  flex-shrink: 0;
  transition: all .18s;
}
.nb-stage.active .nb-stage-num { background: #C9A227; color: #0F0F10; }
.nb-stage.done .nb-stage-num { background: #4ade80; color: #0F0F10; }
.nb-stage-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(247,245,240,.40);
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.nb-stage.active .nb-stage-label { color: #E3C65A; }
.nb-stage.done .nb-stage-label { color: rgba(74,222,128,.80); }

/* ── BOOK CONTAINER ── */
#nb-book-outer {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px 12px 0;
  perspective: 1400px;
}
#nb-book {
  display: flex;
  width: 100%;
  max-width: 1100px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 60px rgba(0,0,0,.60), 0 0 0 1px rgba(201,162,39,.12);
  position: relative;
}

/* ── LEFT PAGE — Context ── */
#nb-left {
  width: 36%;
  background: linear-gradient(160deg, #2a1f08 0%, #1a1208 100%);
  border-right: 3px solid #0a0800;
  padding: 32px 28px 80px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
#nb-left::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.35));
}
.nb-left-stage { font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(201,162,39,.55); margin-bottom: 10px; }
.nb-left-title { font-size: clamp(18px, 2.2vw, 26px); font-weight: 800; color: #F7F5F0; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px; }
.nb-left-divider { width: 40px; height: 2px; background: linear-gradient(90deg, #C9A227, transparent); margin-bottom: 18px; }
.nb-left-desc { font-size: 13px; color: rgba(247,245,240,.55); line-height: 1.72; margin-bottom: 24px; }
.nb-left-items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.nb-left-item { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: rgba(247,245,240,.45); line-height: 1.55; }
.nb-left-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(201,162,39,.45); flex-shrink: 0; margin-top: 5px; }
.nb-left-progress { margin-top: auto; }
.nb-left-prog-label { font-size: 10px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: rgba(201,162,39,.45); margin-bottom: 8px; }
.nb-left-prog-bar { height: 4px; background: rgba(247,245,240,.08); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.nb-left-prog-fill { height: 100%; background: #C9A227; border-radius: 999px; transition: width .4s ease; }
.nb-left-prog-count { font-size: 11px; color: rgba(247,245,240,.35); }
.nb-scope-box { padding: 12px 14px; background: rgba(201,162,39,.08); border: 1px solid rgba(201,162,39,.18); border-radius: 4px; font-size: 12px; color: rgba(247,245,240,.65); line-height: 1.60; margin-bottom: 16px; }
.nb-scope-box strong { color: #E3C65A; display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .10em; margin-bottom: 4px; }

/* ── RIGHT PAGE — Questions ── */
#nb-right {
  flex: 1;
  background: #F5F0E8;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
/* Subtle ruled lines */
#nb-right::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 31px,
    rgba(201,162,39,.08) 31px,
    rgba(201,162,39,.08) 32px
  );
  pointer-events: none;
  z-index: 0;
}
#nb-right-inner {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 80px;
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,162,39,.25) transparent;
}
#nb-right-inner::-webkit-scrollbar { width: 4px; }
#nb-right-inner::-webkit-scrollbar-thumb { background: rgba(201,162,39,.25); border-radius: 999px; }

/* ── PAGE FLIP ANIMATION ── */
@keyframes flipOut {
  0%   { transform: perspective(1400px) rotateY(0deg); opacity: 1; }
  100% { transform: perspective(1400px) rotateY(-90deg); opacity: 0; }
}
@keyframes flipIn {
  0%   { transform: perspective(1400px) rotateY(90deg); opacity: 0; }
  100% { transform: perspective(1400px) rotateY(0deg); opacity: 1; }
}
.nb-flip-out { animation: flipOut .28s ease-in forwards; }
.nb-flip-in  { animation: flipIn  .28s ease-out forwards; }

/* ── FORM ELEMENTS (on cream background) ── */
.nb-section-hdr { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(201,162,39,.20); }
.nb-section-badge { display: inline-block; padding: 2px 8px; background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.25); border-radius: 999px; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A8841E; margin-bottom: 8px; }
.nb-section-title { font-size: clamp(15px, 1.8vw, 20px); font-weight: 800; color: #151518; letter-spacing: -.02em; margin: 0 0 3px; }
.nb-section-sub { font-size: 12px; color: rgba(21,21,24,.45); margin: 0; }

/* Questions */
.nb-q { margin-bottom: 18px; }
.nb-q-num { font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(201,162,39,.55); margin-bottom: 5px; }
.nb-q-text { font-size: 14px; font-weight: 600; color: #151518; line-height: 1.50; margin-bottom: 4px; }
.nb-q-note { font-size: 12px; color: rgba(21,21,24,.45); font-style: italic; margin-bottom: 8px; }

/* Scoring options A–E */
.nb-score-opts { display: flex; flex-direction: column; gap: 4px; }
.nb-score-opt {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(21,21,24,.10);
  border-radius: 3px;
  cursor: pointer;
  background: rgba(255,255,255,.50);
  transition: all .15s;
}
.nb-score-opt:hover { background: rgba(201,162,39,.10); border-color: rgba(201,162,39,.30); }
.nb-score-opt.selected { background: rgba(201,162,39,.15); border-color: #C9A227; }
.nb-score-opt input { display: none; }
.nb-opt-letter {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(21,21,24,.08);
  border: 1px solid rgba(21,21,24,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; color: rgba(21,21,24,.40);
  flex-shrink: 0; font-family: Inter, sans-serif;
  transition: all .15s;
}
.nb-score-opt.selected .nb-opt-letter { background: #C9A227; border-color: #C9A227; color: #0F0F10; }
.nb-opt-text { font-size: 12px; color: rgba(21,21,24,.65); line-height: 1.50; padding-top: 3px; transition: color .15s; }
.nb-score-opt.selected .nb-opt-text { color: #151518; }
.nb-opt-na .nb-opt-letter { background: rgba(21,21,24,.05); color: rgba(21,21,24,.25); }
.nb-score-opt.nb-opt-na.selected { background: rgba(21,21,24,.05); border-color: rgba(21,21,24,.20); }
.nb-score-opt.nb-opt-na.selected .nb-opt-letter { background: rgba(21,21,24,.15); color: #151518; border-color: rgba(21,21,24,.30); }

/* Multi-select */
.nb-multi-opts { display: flex; flex-direction: column; gap: 4px; }
.nb-cb-opt {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(21,21,24,.10); border-radius: 3px;
  cursor: pointer; background: rgba(255,255,255,.50);
  transition: all .15s; font-size: 13px; color: rgba(21,21,24,.70);
}
.nb-cb-opt:hover { background: rgba(201,162,39,.08); border-color: rgba(201,162,39,.25); }
.nb-cb-opt input { accent-color: #C9A227; width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }
.nb-cb-opt:has(input:checked) { background: rgba(201,162,39,.12); border-color: rgba(201,162,39,.35); color: #151518; }
.nb-other-input { margin-top: 5px; margin-left: 24px; width: calc(100% - 24px); padding: 6px 10px; background: rgba(255,255,255,.80); border: 1px solid rgba(201,162,39,.25); border-radius: 3px; font-size: 12px; color: #151518; font-family: Inter, sans-serif; outline: none; box-sizing: border-box; }

/* Radio (non-scoring) */
.nb-radio-opts { display: flex; flex-direction: column; gap: 4px; }
.nb-radio-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(21,21,24,.10); border-radius: 3px;
  cursor: pointer; background: rgba(255,255,255,.50);
  transition: all .15s; font-size: 13px; color: rgba(21,21,24,.70);
}
.nb-radio-opt:hover { background: rgba(201,162,39,.08); border-color: rgba(201,162,39,.25); }
.nb-radio-opt input { accent-color: #C9A227; width: 14px; height: 14px; flex-shrink: 0; }
.nb-radio-opt:has(input:checked) { background: rgba(201,162,39,.12); border-color: rgba(201,162,39,.35); color: #151518; }
.nb-radio-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; }
.nb-radio-row .nb-radio-opt { flex: 0 0 auto; }
.nb-cond-block { margin-top: 10px; padding: 12px 14px; background: rgba(201,162,39,.06); border: 1px solid rgba(201,162,39,.15); border-radius: 4px; }
.nb-cond-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #A8841E; margin-bottom: 8px; }
.nb-dual-part { margin-bottom: 10px; }
.nb-dual-label { font-size: 11px; font-weight: 700; color: #A8841E; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }

/* Flagged */
.nb-q.flagged .nb-q-text { color: #b91c1c; }
.nb-q.flagged .nb-score-opts, .nb-q.flagged .nb-multi-opts, .nb-q.flagged .nb-radio-opts { outline: 1px solid rgba(220,60,60,.35); border-radius: 4px; }

/* Info box */
.nb-info-box { background: rgba(201,162,39,.08); border: 1px solid rgba(201,162,39,.20); border-radius: 4px; padding: 12px 14px; margin-bottom: 16px; font-size: 12px; color: rgba(21,21,24,.65); line-height: 1.65; }
.nb-info-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: #A8841E; margin-bottom: 6px; }

/* ── BOTTOM NAV ── */
#nb-footnav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(245,240,232,.95);
  border-top: 1px solid rgba(201,162,39,.20);
  padding: 10px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
}
.nb-nav-prev { padding: 9px 18px; background: none; border: 1px solid rgba(21,21,24,.18); border-radius: 3px; font-size: 12px; font-weight: 600; color: rgba(21,21,24,.50); cursor: pointer; font-family: Inter, sans-serif; transition: all .18s; }
.nb-nav-prev:hover { color: #151518; border-color: rgba(21,21,24,.35); }
.nb-nav-next { padding: 10px 22px; background: #C9A227; border: none; border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #0F0F10; cursor: pointer; font-family: Inter, sans-serif; transition: background .2s; }
.nb-nav-next:hover { background: #E3C65A; }
.nb-nav-submit { padding: 10px 22px; background: #151518; border: none; border-radius: 3px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #C9A227; cursor: pointer; font-family: Inter, sans-serif; transition: all .2s; display: none; }
.nb-nav-submit:hover { background: #C9A227; color: #0F0F10; }
#nb-unanswered { font-size: 11px; color: #b91c1c; display: none; padding: 5px 10px; background: rgba(220,60,60,.08); border: 1px solid rgba(220,60,60,.20); border-radius: 3px; }

/* ── COVER PAGE ── */
#nb-cover {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1208 0%, #0F0F10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 32px;
}
.nb-cover-inner {
  max-width: 520px;
  text-align: center;
}
.nb-cover-seal {
  width: 70px; height: 70px;
  border: 2px solid #C9A227;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 28px;
  color: #C9A227;
  box-shadow: 0 0 30px rgba(201,162,39,.20);
}
.nb-cover-badge { font-size: 10px; font-weight: 700; letter-spacing: .20em; text-transform: uppercase; color: rgba(201,162,39,.60); margin-bottom: 16px; }
.nb-cover-title { font-size: clamp(26px, 3.5vw, 44px); font-weight: 800; color: #F7F5F0; letter-spacing: -.04em; line-height: 1.05; margin-bottom: 10px; }
.nb-cover-sub { font-size: 15px; color: #E3C65A; font-weight: 300; font-style: italic; margin-bottom: 28px; }
.nb-cover-divider { width: 48px; height: 2px; background: linear-gradient(90deg, #C9A227, transparent); margin: 0 auto 24px; }
.nb-cover-institution { font-size: 18px; font-weight: 700; color: #F7F5F0; margin-bottom: 4px; }
.nb-cover-scope { font-size: 13px; color: rgba(247,245,240,.50); margin-bottom: 32px; }
.nb-cover-start { padding: 14px 36px; background: #C9A227; color: #0F0F10; border: none; border-radius: 3px; font-size: 14px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-family: Inter, sans-serif; cursor: pointer; transition: background .2s; }
.nb-cover-start:hover { background: #E3C65A; }

/* ── RESULTS PAGE ── */
#nb-results { display: none; position: absolute; inset: 0; background: #F5F0E8; z-index: 10; overflow-y: auto; padding: 40px; }
.nb-results-inner { max-width: 680px; margin: 0 auto; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  #nb-left { display: none; }
  #nb-book { border-radius: 0; }
  #nb-right-inner { padding: 20px 18px 80px; }
  #nb-footnav { padding: 10px 18px; }
}
@media (max-width: 500px) {
  #nb-topbar { padding: 8px 14px; }
  .nb-stage-label { display: none; }
}


#nb-scroll-hint {
  position: absolute; bottom: 56px; left: 0; right: 0;
  text-align: center; pointer-events: none; z-index: 5; transition: opacity .3s;
}
.nb-scroll-arrow {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 14px; background: rgba(201,162,39,.15);
  border: 1px solid rgba(201,162,39,.25); border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #E3C65A; animation: nbBounce 1.8s ease-in-out infinite;
}
@keyframes nbBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

