/* Shared design system for the leadership questionnaires, adapted from Arquivos/HTML. */
:root {
  --qz-ink: #16233A;
  --qz-parchment: #F3EEE4;
  --qz-parchment-2: #EAE3D3;
  --qz-gold: #C9973F;
  --qz-teal: #2F6E6E;
  --qz-text: #211F1A;
  --qz-text-soft: #5C574C;
  --qz-line: #CFC6B3;
  --qz-white: #FFFDF8;
  --qz-danger: #A5473A;
  --qz-ok: #2E6B4F;
  --qz-font-display: 'Fraunces', Georgia, serif;
  --qz-font-body: 'Inter', -apple-system, sans-serif;
}

.qz-app { max-width: 900px; margin: 0 auto; padding: 24px 20px 60px; font-family: var(--qz-font-body); color: var(--qz-text); }

.qz-header { border-bottom: 1px solid var(--qz-line); padding-bottom: 20px; margin-bottom: 26px; }
.qz-eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--qz-gold); font-weight: 600; margin-bottom: 6px; }
.qz-header h1 { font-family: var(--qz-font-display); font-weight: 600; font-size: 32px; margin: 0 0 8px; color: var(--qz-ink); letter-spacing: -0.01em; }
.qz-subtitle { font-size: 14px; color: var(--qz-text-soft); max-width: 680px; line-height: 1.55; }

.qz-share-bar { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.qz-share-label { font-size: 12.5px; font-weight: 600; color: var(--qz-text-soft); margin-right: 2px; }
.qz-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--qz-line); background: var(--qz-white); color: var(--qz-ink); cursor: pointer; text-decoration: none; transition: border-color .12s ease, color .12s ease, background .12s ease; padding: 0; }
.qz-share-btn:hover { border-color: var(--qz-gold); color: var(--qz-gold); }
.qz-share-btn.qz-share-copied { border-color: var(--qz-ok); color: var(--qz-ok); background: #E4EFE9; }

.qz-share-copy-wrap { position: relative; display: inline-flex; }
.qz-share-toast {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 50%;
  transform: translate(50%, 4px);
  background: var(--qz-ink);
  color: var(--qz-white);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.qz-share-toast::after {
  content: '';
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  border: 5px solid transparent;
  border-top-color: var(--qz-ink);
}
.qz-share-toast-visible { opacity: 1; transform: translate(50%, 0); }

.qz-progress-wrap { margin-top: 18px; height: 4px; border-radius: 4px; background: var(--qz-parchment-2); overflow: hidden; }
.qz-progress-bar { height: 100%; background: var(--qz-gold); transition: width .2s ease; }

.qz-dim-heading { font-family: var(--qz-font-display); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--qz-teal); margin: 34px 0 4px; }
.qz-dim-heading:first-of-type { margin-top: 8px; }

.qz-question { background: var(--qz-white); border: 1px solid var(--qz-line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.qz-question-text { font-size: 15px; font-weight: 500; color: var(--qz-ink); margin-bottom: 14px; line-height: 1.45; }

.qz-scale { display: flex; gap: 8px; flex-wrap: wrap; }
.qz-scale-opt { flex: 1; min-width: 90px; text-align: center; padding: 9px 6px; border-radius: 10px; border: 1px solid var(--qz-line); font-size: 12.5px; font-weight: 600; color: var(--qz-text-soft); cursor: pointer; transition: all .12s ease; user-select: none; background: none; }
.qz-scale-opt:hover { border-color: var(--qz-gold); color: var(--qz-ink); }
.qz-scale-opt.selected { background: var(--qz-ink); border-color: var(--qz-ink); color: var(--qz-white); }

.qz-actions { display: flex; gap: 10px; margin-top: 26px; align-items: center; flex-wrap: wrap; }
.qz-btn { font-family: var(--qz-font-body); font-weight: 600; font-size: 13.5px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--qz-ink); background: var(--qz-ink); color: var(--qz-white); cursor: pointer; transition: opacity .15s ease; }
.qz-btn.secondary { background: transparent; color: var(--qz-ink); }
.qz-btn.ghost { background: transparent; color: var(--qz-danger); border-color: var(--qz-danger); }
.qz-btn:disabled { opacity: .35; cursor: not-allowed; }
.qz-btn:not(:disabled):hover { opacity: .8; }
.qz-hint { font-size: 12.5px; color: var(--qz-text-soft); }

.qz-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .qz-result-grid { grid-template-columns: 1fr; } }

.qz-card { background: var(--qz-white); border: 1px solid var(--qz-line); border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.qz-total-score { font-family: var(--qz-font-display); font-size: 46px; font-weight: 600; color: var(--qz-ink); line-height: 1; }
.qz-total-score span { font-size: 20px; color: var(--qz-text-soft); font-family: var(--qz-font-body); font-weight: 500; }

.qz-level-tag { display: inline-block; margin-top: 10px; padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; }
.qz-level-baixo, .qz-level-low, .qz-level-1, .qz-low { background: #F5E5E2; color: var(--qz-danger); }
.qz-level-medio, .qz-level-mid, .qz-level-2, .qz-mid { background: #FBF0DA; color: #8A5E1E; }
.qz-level-alto, .qz-level-high, .qz-level-3, .qz-high { background: #E4EFE9; color: var(--qz-ok); }
.qz-level-4 { background: var(--qz-ink); color: var(--qz-white); }

.qz-level-text { font-size: 14px; line-height: 1.6; color: var(--qz-text); margin-top: 14px; }

.qz-dim-bar-row { margin-bottom: 14px; }
.qz-dim-bar-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--qz-ink); margin-bottom: 6px; }
.qz-dim-bar-track { height: 8px; border-radius: 6px; background: var(--qz-parchment-2); overflow: hidden; }
.qz-dim-bar-fill { height: 100%; border-radius: 6px; }

.qz-priority-item { padding: 14px 0; border-bottom: 1px solid var(--qz-line); }
.qz-priority-item:last-child { border-bottom: none; }
.qz-priority-item .qz-name { font-weight: 700; font-size: 14px; color: var(--qz-ink); margin-bottom: 4px; }
.qz-tip { font-size: 13.5px; color: var(--qz-text-soft); line-height: 1.6; }
.qz-priority-item .qz-tip { font-size: 13px; color: var(--qz-text-soft); line-height: 1.5; }

.qz-save-note { font-size: 12px; color: var(--qz-text-soft); margin-top: 14px; }

.qz-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--qz-parchment-2); color: var(--qz-text-soft); }

.qz-kv-grid { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; font-size: 13.5px; }
.qz-kv-grid dt { color: var(--qz-text-soft); font-weight: 600; }
.qz-kv-grid dd { margin: 0; }

.qz-identity-card { background: var(--qz-white); border: 1px solid var(--qz-line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.qz-field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--qz-ink); margin-bottom: 6px; }
.qz-input, .qz-textarea { width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--qz-line); font-family: var(--qz-font-body); font-size: 14px; background: var(--qz-white); color: var(--qz-text); box-sizing: border-box; }
.qz-input:disabled, .qz-textarea:disabled { background: var(--qz-parchment-2); color: var(--qz-text-soft); cursor: not-allowed; }
.qz-textarea { min-height: 90px; resize: vertical; }

.qz-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; margin-bottom: 6px; cursor: pointer; }
.qz-consent input[type="checkbox"] { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--qz-ink); cursor: pointer; }
.qz-consent span { font-size: 12.5px; color: var(--qz-text-soft); line-height: 1.5; }
.qz-consent a { color: var(--qz-teal); font-weight: 600; text-decoration: none; }
.qz-consent a:hover { text-decoration: underline; }
.qz-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 600px) { .qz-field-row { grid-template-columns: 1fr; } }

.qz-tabs { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.qz-tab { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--qz-line); background: var(--qz-white); font-size: 13px; font-weight: 600; color: var(--qz-text-soft); cursor: pointer; }
.qz-tab.active { background: var(--qz-ink); border-color: var(--qz-ink); color: var(--qz-white); }

.qz-anon-badge { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--qz-teal); background: #E4EFE9; padding: 5px 12px; border-radius: 999px; }

.qz-slider-row { margin-bottom: 20px; }
.qz-slider-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--qz-ink); margin-bottom: 6px; }
.qz-slider-row input[type="range"] { width: 100%; accent-color: var(--qz-gold); }

.qz-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.qz-hub-card { display: block; background: var(--qz-white); border: 1px solid var(--qz-line); border-radius: 16px; padding: 20px; text-decoration: none; color: inherit; transition: border-color .12s ease, transform .12s ease; }
.qz-hub-card:hover { border-color: var(--qz-gold); transform: translateY(-2px); }
.qz-hub-card .qz-eyebrow { margin-bottom: 8px; }
.qz-hub-card h3 { font-family: var(--qz-font-display); font-size: 19px; margin: 0 0 8px; color: var(--qz-ink); }
.qz-hub-card p { font-size: 13px; color: var(--qz-text-soft); line-height: 1.5; margin: 0 0 12px; }
.qz-hub-meta { font-size: 12px; color: var(--qz-teal); font-weight: 600; }

.qz-wizard-progress { display: flex; gap: 4px; margin: 18px 0; }
.qz-wizard-seg { flex: 1; height: 4px; border-radius: 4px; background: var(--qz-parchment-2); }
.qz-wizard-seg.done { background: var(--qz-gold); }

.qz-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 28px; flex-wrap: wrap; }

.qz-alert { background: #FBF0DA; border: 1px solid #E7CE9C; color: #8A5E1E; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; margin-bottom: 16px; }

.qz-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--qz-text-soft); margin-bottom: 8px; }

table.qz-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.qz-table th, table.qz-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--qz-line); }
table.qz-table th { color: var(--qz-text-soft); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

.qz-service-title { font-family: var(--qz-font-display); font-size: 22px; margin: 0 0 18px; color: var(--qz-ink); }
.qz-service-section { margin-bottom: 20px; }
.qz-service-section:last-child { margin-bottom: 0; }
.qz-service-heading { font-family: var(--qz-font-display); font-size: 15px; margin: 0 0 10px; color: var(--qz-ink); }
.qz-service-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--qz-teal); margin: 0 0 4px; }
.qz-service-paragraph { font-size: 14.5px; line-height: 1.65; color: var(--qz-text); margin: 0; }
.qz-service-list { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: var(--qz-text); }
.qz-service-list li { margin-bottom: 4px; }

.qz-star-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--qz-line); }
.qz-star-row:last-child { border-bottom: none; }
.qz-star-label { font-size: 14px; color: var(--qz-ink); }
.qz-star-group { display: flex; gap: 3px; }
.qz-star { font-size: 22px; line-height: 1; color: var(--qz-line); cursor: pointer; user-select: none; font-family: serif; }
.qz-star.filled { color: var(--qz-gold); }

.qz-star-result-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--qz-line); font-size: 13px; }
.qz-star-result-row:last-child { border-bottom: none; }

.qz-nps-row { display: flex; gap: 5px; margin: 12px 0 4px; flex-wrap: wrap; }
.qz-nps-opt { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--qz-line); background: var(--qz-white); font-size: 13px; font-weight: 600; color: var(--qz-text-soft); cursor: pointer; }
.qz-nps-opt.selected { background: var(--qz-ink); border-color: var(--qz-ink); color: var(--qz-white); }

.qz-accordion { display: flex; flex-direction: column; gap: 10px; }
.qz-accordion-item { background: var(--qz-white); border: 1px solid var(--qz-line); border-radius: 14px; overflow: hidden; }
.qz-accordion-header { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--qz-font-display); font-size: 16px; font-weight: 600; color: var(--qz-ink); }
.qz-accordion-icon { font-family: var(--qz-font-body); font-size: 18px; font-weight: 700; color: var(--qz-gold); flex-shrink: 0; }
.qz-accordion-body { padding: 0 20px 20px; border-top: 1px solid var(--qz-line); padding-top: 18px; }
