/* Conference Evaluation questionnaire page. Reuses the shared .card,
   .form-row, .btn, .notice-bar primitives from styles.css -- this file only
   adds the matrix-rating-table layout and a couple of page-specific states
   that don't exist anywhere else in the site. */

.eval-hero {
  background: linear-gradient(135deg, var(--canqate-navy), #163a5c);
  color: #fff;
  padding: 56px 20px 40px;
  text-align: center;
}
.eval-hero-inner { max-width: 760px; margin: 0 auto; }
.eval-hero-eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ffd9a8; margin-bottom: 10px; }
.eval-hero h1 { font-size: 2rem; margin: 0 0 10px; }
.eval-hero p { color: rgba(255,255,255,.85); font-size: .98rem; margin: 0; }

.eval-body { max-width: 860px; margin: -24px auto 60px; padding: 0 20px; }

.eval-section { margin-bottom: 22px; }
.eval-section-title { font-size: 1.1rem; margin: 0 0 4px; color: var(--canqate-navy); }
.eval-section-desc { font-size: .86rem; color: var(--canqate-muted); margin: 0 0 16px; }

/* Each matrix item renders as its own stacked "label + radio pills" block
   on narrow screens, and a proper ratings table on wide screens -- a fixed
   HTML <table> of radios is unusable on a phone at ~57 total matrix rows,
   so the mobile layout is the real one and the table is the enhancement. */
.eval-matrix { border: 1px solid var(--canqate-border); border-radius: 10px; overflow: hidden; }
.eval-matrix-row { padding: 14px 16px; border-bottom: 1px solid var(--canqate-border); }
.eval-matrix-row:last-child { border-bottom: none; }
.eval-matrix-row:nth-child(odd) { background: #fafbfc; }
.eval-matrix-item-label { font-size: .88rem; font-weight: 600; color: var(--canqate-text); margin-bottom: 10px; }
.eval-matrix-options { display: flex; flex-wrap: wrap; gap: 6px; }
.eval-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--canqate-border); border-radius: 999px;
  padding: 6px 12px; font-size: .78rem; cursor: pointer; background: #fff;
  color: var(--canqate-text); user-select: none; transition: border-color .12s, background .12s;
}
.eval-pill:hover { border-color: var(--canqate-teal); }
.eval-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.eval-pill.checked { background: var(--canqate-navy); border-color: var(--canqate-navy); color: #fff; }

@media (min-width: 720px) {
  .eval-matrix-table { width: 100%; border-collapse: collapse; }
  .eval-matrix-table thead th {
    text-align: center; font-size: .72rem; font-weight: 700; color: var(--canqate-muted);
    text-transform: uppercase; letter-spacing: .03em; padding: 10px 6px; border-bottom: 1px solid var(--canqate-border);
    background: #f4f6f7;
  }
  .eval-matrix-table thead th:first-child { text-align: left; }
  .eval-matrix-table tbody td { padding: 10px 6px; border-bottom: 1px solid var(--canqate-border); text-align: center; }
  .eval-matrix-table tbody tr:last-child td { border-bottom: none; }
  .eval-matrix-table tbody tr:nth-child(odd) { background: #fafbfc; }
  .eval-matrix-table tbody td:first-child { text-align: left; font-size: .85rem; font-weight: 600; max-width: 320px; }
  .eval-matrix-table input[type="radio"] { width: 16px; height: 16px; accent-color: var(--canqate-navy); cursor: pointer; }
  .eval-matrix-mobile { display: none; }
}
@media (max-width: 719px) {
  .eval-matrix-table { display: none; }
}

.eval-progress { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--canqate-border); padding: 10px 0; margin-bottom: 20px; }
.eval-progress-bar { height: 6px; border-radius: 999px; background: var(--canqate-border); overflow: hidden; }
.eval-progress-fill { height: 100%; background: var(--canqate-teal); transition: width .2s; }
.eval-progress-label { font-size: .74rem; color: var(--canqate-muted); margin-top: 6px; text-align: right; }

.eval-submit-row { display: flex; justify-content: center; margin: 28px 0 10px; }
.eval-submit-row .btn { min-width: 220px; justify-content: center; }

.eval-thanks, .eval-error-state, .eval-loading-state {
  text-align: center; padding: 60px 20px; max-width: 520px; margin: 0 auto;
}
.eval-thanks-icon, .eval-error-icon { width: 56px; height: 56px; margin: 0 auto 18px; color: var(--canqate-success); }
.eval-error-icon { color: var(--canqate-danger); }
.eval-thanks h2, .eval-error-state h2 { margin: 0 0 10px; color: var(--canqate-navy); }
.eval-thanks p, .eval-error-state p { color: var(--canqate-muted); font-size: .92rem; }

.eval-submit-error {
  background: #fdeceb; color: #a3271e; border: 1px solid #f3c9c4; border-radius: 8px;
  padding: 12px 16px; font-size: .86rem; margin: 14px 0; display: none;
}
.eval-submit-error.show { display: block; }
