/* ============================================================
   Conversation HealthCheck — Assessment Styles
   ============================================================ */

/* ── Wrapper ───────────────────────────────────────────────── */
#chc-app {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px 48px;
  color: #222;
  box-sizing: border-box;
}

#chc-app *, #chc-app *::before, #chc-app *::after {
  box-sizing: inherit;
}

/* ── Progress bar ──────────────────────────────────────────── */
#chc-progress-wrap {
  margin-bottom: 28px;
  padding-top: 8px;
}

#chc-progress-bar {
  height: 8px;
  background: #e0e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

#chc-progress-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 25%;
  background: #1F4E79;
  border-radius: 4px;
  transition: width 0.35s ease;
}

#chc-progress-label {
  font-size: 13px;
  color: #666;
  text-align: right;
}

/* ── Section header ────────────────────────────────────────── */
.chc-section-header {
  margin-bottom: 24px;
}

.chc-section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #1F4E79;
  background: #e8f0f8;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.chc-section-title {
  font-size: 26px;
  font-weight: 700;
  color: #1F4E79;
  margin: 0 0 8px;
  line-height: 1.2;
}

.chc-section-subtitle {
  font-size: 15px;
  color: #444;
  margin: 0 0 8px;
  line-height: 1.5;
}

.chc-section-note {
  font-size: 13px;
  color: #666;
  background: #fffbe6;
  border-left: 4px solid #ED7D31;
  padding: 8px 12px;
  margin: 10px 0 0;
  border-radius: 0 3px 3px 0;
}

.chc-instruction {
  font-size: 14px;
  color: #555;
  margin: 0 0 20px;
  font-style: italic;
}

/* ── Question blocks ───────────────────────────────────────── */
.chc-question {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.chc-question:last-of-type {
  border-bottom: none;
}

.chc-q-text {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 14px;
  line-height: 1.4;
}

.chc-q-num {
  color: #1F4E79;
  margin-right: 4px;
}

/* ── Scale buttons ─────────────────────────────────────────── */
.chc-scale-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chc-scale-option {
  flex: 1;
  min-width: 64px;
  cursor: pointer;
}

.chc-scale-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.chc-scale-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 6px 8px;
  border: 2px solid #d0dce8;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  min-height: 58px;
  text-align: center;
  cursor: pointer;
}

.chc-scale-btn:hover {
  border-color: #1F4E79;
  background: #f0f5fa;
}

.chc-scale-option input[type="radio"]:checked + .chc-scale-btn {
  border-color: #1F4E79;
  background: #1F4E79;
  color: #fff;
}

.chc-scale-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.chc-scale-lbl {
  font-size: 10px;
  line-height: 1.3;
  display: block;
  margin-top: 3px;
}

/* ── Navigation row ────────────────────────────────────────── */
.chc-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

.chc-btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.18s, opacity 0.18s;
  line-height: 1.2;
}

.chc-btn-next {
  background: #1F4E79;
  color: #fff;
  margin-left: auto;
}

.chc-btn-next:hover {
  background: #163c5e;
}

.chc-btn-back {
  background: transparent;
  color: #1F4E79;
  border: 2px solid #1F4E79;
}

.chc-btn-back:hover {
  background: #e8f0f8;
}

/* ── Email gate ────────────────────────────────────────────── */
#chc-capture {
  max-width: 520px;
  margin: 0 auto;
  padding: 36px 0;
}

.chc-capture-inner h2 {
  font-size: 28px;
  color: #1F4E79;
  margin: 0 0 10px;
}

.chc-capture-inner > p {
  font-size: 15px;
  color: #444;
  margin: 0 0 24px;
  line-height: 1.55;
}

.chc-field {
  margin-bottom: 18px;
}

.chc-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}

.chc-field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  border: 2px solid #d0dce8;
  border-radius: 5px;
  color: #222;
  background: #fff;
  transition: border-color 0.18s;
  outline: none;
}

.chc-field input:focus {
  border-color: #1F4E79;
}

.chc-error {
  color: #C00000;
  font-size: 14px;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid #ffc0c0;
  border-radius: 4px;
  margin-bottom: 14px;
}

.chc-btn-submit {
  background: #1F4E79;
  color: #fff;
  padding: 13px 28px;
  font-size: 16px;
}

.chc-btn-submit:hover {
  background: #163c5e;
}

.chc-btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Results screen ────────────────────────────────────────── */
#chc-results {
  padding-top: 12px;
}

.chc-results-header {
  border-bottom: 3px solid #1F4E79;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.chc-results-logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1F4E79;
  margin-bottom: 6px;
}

.chc-results-header h2 {
  font-size: 28px;
  color: #1a1a1a;
  margin: 0;
}

/* Overall score box */
.chc-overall-box {
  background: #f2f2f2;
  border-left: 6px solid #888;
  padding: 20px 22px;
  margin-bottom: 8px;
  border-radius: 0 5px 5px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
}

.chc-overall-main { flex: 1 1 260px; }
.chc-overall-key  { flex: 1 1 280px; }

.chc-overall-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #666;
  margin-bottom: 4px;
}

.chc-overall-score {
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: #1F4E79;
}

.chc-out-of {
  font-size: 20px;
  font-weight: 400;
  color: #777;
}

.chc-overall-tier {
  font-size: 22px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1.25;
}

.chc-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #666;
  padding: 5px 8px;
  border-radius: 4px;
}

.chc-key-row.chc-key-current {
  background: #fff;
  color: #1a1a1a;
  font-weight: 700;
  box-shadow: 0 0 0 1px #d5d5d5;
}

.chc-key-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: none;
}

.chc-key-range {
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}

.chc-overall-note {
  font-size: 13px;
  color: #666;
  margin: 0 0 30px;
}

/* Section results */
.chc-section-results-heading {
  font-size: 17px;
  color: #1F4E79;
  border-bottom: 1px solid #1F4E79;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.chc-section-result-block {
  margin-bottom: 16px;
}

.chc-section-result-label {
  font-size: 13px;
  font-weight: 700;
  color: #1F4E79;
  margin-bottom: 5px;
}

.chc-section-result-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.chc-section-score-box {
  min-width: 90px;
  text-align: center;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #888;
  color: #fff;
}

.chc-section-score-num {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.chc-section-score-max {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.chc-section-tier-box {
  flex: 1;
  padding: 14px 18px;
  border-left: 1px solid #ddd;
}

.chc-section-tier-label {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 4px;
}

.chc-section-result-measures {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 8px;
}

.chc-section-tier-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 4px 0 3px;
}

.chc-section-tier-desc {
  font-size: 13px;
  color: #444;
  line-height: 1.5;
}

/* CTA box */
.chc-cta-box {
  margin-top: 32px;
  background: #f2f2f2;
  border-top: 3px solid #1F4E79;
  padding: 18px 22px;
  text-align: center;
  font-size: 14px;
  color: #1F4E79;
  border-radius: 0 0 4px 4px;
}

.chc-cta-box a {
  color: #1F4E79;
  font-weight: 700;
}

.chc-email-note {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 16px;
}

/* ── Introduction screen ───────────────────────────────────── */
#chc-intro {
  padding: 12px 0 24px;
}

.chc-intro-lead {
  font-size: 16px;
  color: #333;
  line-height: 1.55;
  margin: 0 0 16px;
}

.chc-intro-tips {
  margin: 0 0 22px 22px;
  padding: 0;
}

.chc-intro-tips li {
  font-size: 15px;
  color: #333;
  line-height: 1.5;
  margin-bottom: 10px;
  padding-left: 4px;
}

.chc-intro-tips strong { color: #1F4E79; }

.chc-intro-ready {
  font-size: 18px;
  font-weight: 700;
  color: #1F4E79;
  margin: 0 0 14px;
}

.chc-btn-start { margin-left: 0; }

/* ── Almost Done: score preview ─────────────────────────────── */
.chc-capture-score {
  background: #f2f5f8;
  border-left: 5px solid #1F4E79;
  border-radius: 0 5px 5px 0;
  padding: 14px 18px;
  margin: 6px 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.chc-capture-score-label { font-size: 16px; font-weight: 600; color: #333; }
.chc-capture-score-num   { font-size: 36px; font-weight: 700; color: #1F4E79; line-height: 1; }
.chc-capture-score-max   { font-size: 16px; color: #666; }

/* ── Scoring labels matrix ──────────────────────────────────── */
.chc-matrix { margin-top: 40px; }

.chc-matrix-heading {
  font-size: 22px;
  color: #1F4E79;
  text-align: center;
  margin: 0 0 8px;
}

.chc-matrix-intro {
  font-size: 14px;
  color: #444;
  text-align: center;
  line-height: 1.55;
  max-width: 600px;
  margin: 0 auto 20px;
}

.chc-matrix-sheet {
  background: #f6f8fa;
  border: 1px solid #e3e8ee;
  border-radius: 8px;
  padding: 22px 18px;
}

.chc-matrix-title {
  font-size: 19px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
}

.chc-matrix-sub {
  font-size: 13px;
  color: #666;
  text-align: center;
  margin: 2px 0 18px;
}

.chc-matrix-overall {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-radius: 6px;
  padding: 14px;
  margin-bottom: 22px;
}

.chc-matrix-overall-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
  text-align: center;
  margin-bottom: 10px;
}

.chc-matrix-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.chc-matrix-overall-cell {
  text-align: center;
  border-radius: 5px;
  padding: 10px 6px;
  border: 2px solid transparent;
  position: relative;
}

.chc-mo-range { font-size: 15px; font-weight: 700; }
.chc-mo-word  { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.chc-mo-sub   { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }

.chc-c-red    { color: #C00000; }
.chc-c-orange { color: #C9601A; }
.chc-c-green  { color: #4E8A2C; }
.chc-matrix-overall-cell.chc-c-red    { background: #fdeceb; }
.chc-matrix-overall-cell.chc-c-orange { background: #fdf1e7; }
.chc-matrix-overall-cell.chc-c-green  { background: #eef6e9; }

.chc-matrix-section { margin-bottom: 18px; }
.chc-matrix-section:last-child { margin-bottom: 0; }

.chc-matrix-section-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.chc-matrix-num {
  background: #1F4E79;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chc-matrix-section-title { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.chc-matrix-weight { font-size: 12px; color: #777; }

.chc-matrix-cell {
  background: #fff;
  border: 1px solid #e3e8ee;
  border-top: 4px solid currentColor;
  border-radius: 5px;
  padding: 10px 12px 12px;
}

.chc-mc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  min-height: 20px;
}

.chc-mc-range { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.chc-mc-title { font-size: 14px; font-weight: 700; color: #1a1a1a; margin: 4px 0 4px; }
.chc-mc-desc  { font-size: 12.5px; color: #555; line-height: 1.45; }

.chc-your-badge {
  display: none;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  background: #1F4E79;
  border-radius: 10px;
  padding: 2px 8px;
}

.chc-matrix-overall-cell .chc-your-badge { margin: 6px auto 0; width: max-content; }

.chc-is-yours { box-shadow: 0 0 0 3px currentColor; }
.chc-is-yours .chc-your-badge { display: inline-block; }
.chc-matrix-overall-cell.chc-is-yours .chc-your-badge { display: block; }

/* ── Responsive tweaks ─────────────────────────────────────── */
@media (max-width: 540px) {
  .chc-scale-btn {
    min-height: 52px;
    padding: 8px 4px;
  }
  .chc-scale-num {
    font-size: 16px;
  }
  .chc-scale-lbl {
    font-size: 9px;
  }
  .chc-section-title {
    font-size: 21px;
  }
  .chc-overall-score {
    font-size: 34px;
  }
  .chc-btn {
    font-size: 14px;
    padding: 10px 16px;
  }
}

@media (max-width: 640px) {
  .chc-matrix-row { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .chc-scale-wrap {
    gap: 5px;
  }
}

/* ============================================================
   Conversation Quality Assessment
   ============================================================ */
#cqa-app {
  font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 48px;
  color: #222;
  box-sizing: border-box;
}
#cqa-app *, #cqa-app *::before, #cqa-app *::after { box-sizing: inherit; }
#cqa-intro { padding: 12px 0 24px; max-width: 780px; }
#cqa-form { max-width: 780px; margin: 0 auto; }

.cqa-progress-wrap { margin: 0 auto 28px; padding-top: 8px; max-width: 780px; }
.cqa-progress-bar { height: 8px; background: #e0e8f0; border-radius: 4px; overflow: hidden; margin-bottom: 6px; }
#cqa-progress-fill { height: 100%; width: 0; background: #1F4E79; border-radius: 4px; transition: width 0.35s ease; }
.cqa-progress-label { font-size: 13px; color: #666; text-align: right; }

/* Title with its description tucked underneath */
#cqa-app .cqa-section-title { margin-bottom: 2px; }
.cqa-section-subtitle {
  font-size: 16px;
  font-style: italic;
  color: #5a6b78;
  line-height: 1.45;
  margin: 0;
}

/* "Remember" callout: a note to the person answering */
.cqa-reminder {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: #6b4a12;
  background: #fff6e5;
  border-left: 4px solid #E0A33A;
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  margin: 18px 0 4px;
}
.cqa-reminder-icon { color: #E0A33A; flex: none; }
.cqa-reminder strong { color: #6b4a12; }

.cqa-question-error .chc-scale-wrap { outline: 2px solid #C00000; border-radius: 4px; padding: 4px; }

#cqa-capture { max-width: 520px; margin: 0 auto; padding: 36px 0; }
.cqa-capture-score { display: block; font-size: 16px; line-height: 1.55; color: #333; }
.cqa-capture-score strong { font-size: 22px; color: #1F4E79; }

#cqa-results { padding-top: 12px; }
.cqa-top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-bottom: 28px; }
.cqa-grid-col { flex: 1 1 360px; min-width: 0; }
.cqa-box-col  { flex: 1 1 300px; }
.cqa-grid svg { width: 100%; height: auto; display: block; }
.cqa-grid-note { font-size: 12.5px; color: #666; line-height: 1.5; margin: 6px 0 0; }

.cqa-box-card { background: #f2f2f2; border-left: 6px solid #888; border-radius: 0 5px 5px 0; padding: 18px 20px; }
.cqa-box-name { font-size: 24px; font-weight: 700; line-height: 1.2; margin: 4px 0 8px; }
.cqa-box-sum  { font-size: 15px; font-weight: 700; color: #222; line-height: 1.45; }
.cqa-box-out  { font-size: 14px; font-style: italic; font-weight: 600; margin: 4px 0 10px; }
.cqa-box-desc { font-size: 14px; color: #333; line-height: 1.55; margin: 0 0 10px; }
.cqa-box-next { font-size: 14px; color: #222; line-height: 1.55; margin: 0; }



/* Scoring sheet: Part 1 (the grid) and Part 2 (the two scores) */
.cqa-part { margin-top: 6px; }
.cqa-part-scores { margin-top: 30px; padding-top: 24px; border-top: 2px dashed #c9d3d8; }
.cqa-part-head { font-size: 18px; font-weight: 700; color: #1a1a1a; display: flex; align-items: center; gap: 10px; }
.cqa-part-tag { background: #1A3A4A; color: #fff; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.cqa-part-intro { font-size: 13.5px; color: #555; margin: 6px 0 14px; line-height: 1.5; }

.cqa-mgrid {
  display: grid;
  grid-template-columns: 28px 30px 1fr 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 6px;
  background: #EEF1F3;
  border: 1px solid #C9D3D8;
  border-radius: 10px;
  padding: 10px;
}
.cqa-ax { background: #1A3A4A; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 5px; display: flex; align-items: center; justify-content: center; text-align: center; }
.cqa-ax-what { grid-column: 1; grid-row: 1 / 3; writing-mode: vertical-rl; transform: rotate(180deg); padding: 6px 0; }
.cqa-ax-who  { grid-column: 3 / 5; grid-row: 4; padding: 6px; }
.cqa-ax-side { color: #fff; font-size: 12px; font-weight: 700; border-radius: 5px; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px 0; line-height: 1.3; }
.cqa-ax-side small, .cqa-ax-bottom small { font-weight: 400; opacity: 0.9; }
.cqa-ax-bottom { color: #fff; font-size: 12px; font-weight: 700; border-radius: 5px; text-align: center; padding: 5px; grid-row: 3; }
.cqa-ax-bottom.cqa-ax-red { grid-column: 3; }
.cqa-ax-bottom.cqa-ax-green { grid-column: 4; }
.cqa-ax-green { background: #2E7D4F; }
.cqa-ax-red   { background: #B5483B; }

.cqa-mbox { border: 2px solid currentColor; border-radius: 8px; padding: 10px 12px 12px; }
.cqa-mbox-green { color: #2E7D4F; background: #D8EDE2; }
.cqa-mbox-red   { color: #B5483B; background: #F6DCD7; }
.cqa-mbox-title { font-size: 15px; font-weight: 700; }
.cqa-mbox-sum { font-size: 13px; color: #333; line-height: 1.45; margin-top: 4px; }
.cqa-mbox-out { font-size: 12.5px; font-style: italic; font-weight: 600; margin-top: 4px; }
.cqa-mbox.chc-is-yours { box-shadow: 0 0 0 3px #1A3A4A; }

.cqa-scale-bar {
  display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #fff;
  background: linear-gradient(90deg, #C00000 0%, #ED7D31 50%, #4E8A2C 100%);
  border-radius: 12px; padding: 3px 12px; margin: 0 0 8px;
}
@media (max-width: 640px) {
  .cqa-mgrid { grid-template-columns: 22px 24px 1fr 1fr; gap: 4px; padding: 6px; }
  .cqa-mbox { padding: 8px; }
  .cqa-mbox-title { font-size: 13px; }
  .cqa-mbox-sum { font-size: 12px; }
  .cqa-mbox .chc-mc-top { flex-direction: column; align-items: flex-start; }
}
