/* ================================================================
   CHCI Leadership Conflict Styles Assessment
   Public stylesheet — Gallup-inspired editorial design
   Brand: Navy #1B365D • Teal #19B8AF
   ================================================================ */

:root {
  --navy:        #1B365D;
  --navy-dark:   #0F2440;
  --navy-light:  #2A4D7E;
  --teal:        #19B8AF;
  --teal-dark:   #149994;
  --teal-light:  #4FC9C2;
  --teal-bg:     #EAF8F6;
  --gold:        #D4A933;
  --bg:          #FAFAFA;
  --bg-alt:      #F4F6F8;
  --surface:     #FFFFFF;
  --text:        #1A2433;
  --text-strong: #0A0E16;
  --text-muted:  #5C6A7A;
  --text-light:  #93A0B0;
  --border:      #E5E8EC;
  --border-strong: #C7CDD4;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:      0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-lg:   0 8px 32px rgba(15, 23, 42, 0.08);
  --radius-sm:   4px;
  --radius:      6px;
  --radius-lg:   10px;
  --transition:  0.2s ease;
  --serif:       'Source Serif Pro', 'Georgia', 'Times New Roman', serif;
  --sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 960px;
  margin: 0 auto; 
  padding: 0 24px;
  width: 100%;
} 
.container--wide {
  max-width: 1080px;
}

/* ─── Site header ─────────────────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand-logo { height: 38px; width: auto; }
.brand-text {
  display: none;
  font-weight: 700; font-size: 16px; color: var(--navy);
  letter-spacing: -0.005em;
}
.brand-text em { font-style: normal; font-weight: 400; color: var(--text-muted); margin-left: 4px; }
@media (min-width: 640px) { .brand-text { display: inline; } }

.header-meta { font-size: 13px; color: var(--text-muted); }

/* ─── Site main + footer ──────────────────────────────────────── */
.site-main { flex: 1; padding: 56px 0; background: var(--surface); }
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 28px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
}
.footer-link a { color: var(--teal-light); text-decoration: none; font-weight: 500; }
.footer-link a:hover { color: white; }

/* ─── Buttons (Gallup-style: rectangular, bold, no gradients) ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 14px 32px;
  font-family: inherit; font-size: 16px; font-weight: 600;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; line-height: 1;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--navy); color: white; border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary {
  background: white; color: var(--navy); border-color: var(--navy);
}
.btn-secondary:hover { background: var(--navy); color: white; }
.btn-accent {
  background: var(--teal); color: white; border-color: var(--teal);
}
.btn-accent:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-ghost {
  background: transparent; color: var(--text-muted); border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-alt); color: var(--navy); border-color: var(--navy); }
.btn-large { padding: 18px 40px; font-size: 17px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn .icon { width: 18px; height: 18px; }

/* ─── Landing page ────────────────────────────────────────────── */
.landing {
  text-align: left;
  padding-top: 32px;
}
.landing-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
}
.landing h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700; line-height: 1.1;
  color: var(--navy);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.landing-intro {
  font-size: 19px; line-height: 1.65;
  color: var(--text);
  max-width: 680px;
  margin-bottom: 40px;
}
.landing-meta-strip {
  display: flex; gap: 0;
  margin-bottom: 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  flex-wrap: wrap;
}
.landing-meta-item {
  flex: 1; min-width: 140px;
  padding: 0 24px;
  border-left: 1px solid var(--border);
}
.landing-meta-item:first-child { border-left: none; padding-left: 0; }
.landing-meta-item .label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 6px;
}
.landing-meta-item .value {
  font-size: 22px; font-weight: 700;
  color: var(--navy);
  font-family: var(--serif);
}
.landing-cta { margin-bottom: 32px; }
.landing-styles-list {
  font-size: 14px; color: var(--text-muted);
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.landing-styles-list strong { color: var(--navy); }

/* ─── Intake form page ───────────────────────────────────────── */
.intake-header {
  text-align: left;
  margin-bottom: 32px;
}
.intake-header .eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 14px;
}
.intake-header h1 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 12px;
  line-height: 1.2;
}
.intake-header p { color: var(--text-muted); }

/* ─── Assessment page (Gallup-style) ─────────────────────────── */
.assessment-frame { padding-top: 0; }

.progress {
  position: sticky; top: 75px; z-index: 50;
  background: var(--surface); padding: 16px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}
.progress-inner {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.progress-label {
  font-size: 12px; font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.progress-bar {
  flex: 1; height: 4px;
  background: var(--bg-alt);
  border-radius: 2px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--teal);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-count {
  font-size: 12px; font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.question {
  padding: 0;
  animation: fadeIn 0.35s ease-out;
}

.question-meta {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 20px;
}

.question-text {
  font-family: var(--serif);
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 400; line-height: 1.4;
  color: var(--navy);
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.question-instruction {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.options {
  display: flex; flex-direction: column;
  gap: 16px;
}
.option {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition);
  background: var(--surface);
  position: relative;
}
.option:hover {
  border-color: var(--navy);
  background: var(--bg);
}
.option input {
  position: absolute; opacity: 0; pointer-events: none;
}
.option-letter {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-alt); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  border: 2px solid var(--border-strong);
  transition: all var(--transition);
}
.option-text {
  flex: 1; font-size: 17px; line-height: 1.55;
  color: var(--text); padding-top: 4px;
  font-weight: 400;
}
.option.selected {
  border-color: var(--navy);
  background: var(--bg);
}
.option.selected .option-letter {
  background: var(--navy); color: white; border-color: var(--navy);
}
.option.selected .option-text {
  color: var(--text-strong); font-weight: 500;
}

.nav-buttons {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  gap: 16px;
}
.nav-buttons .spacer { flex: 1; }

/* ════════════════════════════════════════════════════════════════
   RESULTS PAGE — Structured into clearly separated section cards
   ════════════════════════════════════════════════════════════════ */
.results-frame { padding-top: 0; max-width: 920px; }

/* ─── Section 1: Page hero ──────────────────────────────────── */
.results-hero {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.results-eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.results-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 700; color: var(--navy);
  letter-spacing: -0.02em; margin-bottom: 14px;
  line-height: 1.15;
}
.results-subtitle {
  font-size: 17px; color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* ─── Section 2: Primary verdict card ──────────────────────── */
.primary-card {
  --accent: var(--navy);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 40px;
  display: flex; align-items: stretch; gap: 32px;
  overflow: hidden;
}
.primary-card__accent {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 6px; background: var(--accent);
}
.primary-card__body { flex: 1; padding-left: 8px; }
.primary-card__label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 14px;
}
.primary-card__name {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 700; color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 14px;
}
.primary-card__tagline {
  font-size: 18px; color: var(--text);
  font-style: italic;
  max-width: 480px;
  line-height: 1.5;
}
.primary-card__stat {
  flex-shrink: 0;
  text-align: right;
  padding-left: 28px;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column;
  justify-content: center; min-width: 140px;
}
.primary-card__stat-value {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; color: var(--accent);
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.primary-card__stat-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .primary-card { flex-direction: column; padding: 28px 24px; gap: 20px; }
  .primary-card__stat {
    text-align: left; padding-left: 0; padding-top: 20px;
    border-left: none; border-top: 1px solid var(--border);
    flex-direction: row; align-items: baseline; gap: 14px;
  }
  .primary-card__stat-value { margin-bottom: 0; }
}

/* ─── Generic "card block" wrapper for section cards ───────── */
.card-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 40px;
  overflow: hidden;
}
.card-block__header {
  padding: 24px 32px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.card-block__title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.015em; margin-bottom: 4px;
}
.card-block__sub {
  font-size: 13px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.card-block__body { padding: 20px 32px 28px; }

@media (max-width: 640px) {
  .card-block__header { padding: 20px 22px 14px; }
  .card-block__body   { padding: 16px 22px 22px; }
}

/* ─── Score rows (bars) ────────────────────────────────────── */
.score-row {
  display: flex; align-items: center; gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.score-row:last-of-type { border-bottom: none; }
.score-row.is-primary { background: linear-gradient(90deg, rgba(25,184,175,0.04) 0%, transparent 100%); margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
@media (max-width: 640px) {
  .score-row.is-primary { margin: 0 -22px; padding-left: 22px; padding-right: 22px; }
}
.score-row__name {
  flex-shrink: 0; width: 130px;
  font-weight: 600; color: var(--navy); font-size: 15px;
}
.score-row__bar-track {
  flex: 1; height: 14px;
  background-color: var(--bg-alt); border-radius: 3px; overflow: hidden;
  position: relative;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.score-row__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.score-row__value {
  flex-shrink: 0; min-width: 64px; text-align: right;
  font-weight: 700; color: var(--text-strong); font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.score-help {
  font-size: 13px; color: var(--text-muted);
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-style: italic;
}
@media (max-width: 540px) {
  .score-row__name { width: 100px; font-size: 14px; }
  .score-row__value { min-width: 52px; font-size: 14px; }
}

/* ─── Section header (used outside .card-block) ────────────── */
.styles-section { margin-bottom: 40px; }
.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-header__title {
  font-family: var(--serif);
  font-size: 26px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.015em; margin-bottom: 6px;
}
.section-header__sub {
  font-size: 14px; color: var(--text-muted);
}

/* ─── Style cards grid ─────────────────────────────────────── */
.style-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .style-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
.style-card {
  --accent: var(--navy);
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.style-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.style-card__accent {
  height: 4px; width: 100%;
  background: var(--accent);
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.style-card__inner { padding: 22px 26px 24px; }
.style-card--primary   { background: var(--bg); border-color: var(--border-strong); }
.style-card--secondary { background: linear-gradient(180deg, rgba(25,184,175,0.04) 0%, transparent 60%); }

.style-badge {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 4px 10px;
  border-radius: 2px; margin-bottom: 12px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.style-badge--primary   { background: var(--navy);  color: white; }
.style-badge--secondary { background: var(--teal);  color: white; }
.style-badge--least     { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border-strong); }
.style-badge--neutral   { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

.style-card__name {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700; color: var(--navy);
  margin-bottom: 6px; letter-spacing: -0.015em;
  line-height: 1.2;
}
.style-card__score {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px;
  padding-bottom: 14px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.style-card__score-label {
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.style-card__score-value {
  color: var(--navy); font-weight: 700; font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.style-card__section { margin-top: 14px; }
.style-card__heading {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 8px; color: var(--text-muted);
}
.style-card__list { list-style: none; padding: 0; }
.style-card__list li {
  font-size: 14.5px; padding: 4px 0 4px 18px;
  position: relative; color: var(--text); line-height: 1.5;
}
.style-card__list li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px;
  background: var(--teal); border-radius: 50%;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
.style-card__list--watchouts li::before { background: var(--gold); }

/* ─── Section 5: Results actions block ─────────────────────── */
.results-actions-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}
.results-actions-block__title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--navy);
  letter-spacing: -0.015em; margin-bottom: 8px;
}
.results-actions-block__sub {
  font-size: 15px; color: var(--text-muted);
  margin-bottom: 22px;
}
.results-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 540px) {
  .results-actions-block { padding: 24px 18px; }
  .results-actions .btn { flex: 1; min-width: 0; }
}

/* ─── Form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--navy); margin-bottom: 8px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.form-label .required { color: #B85C00; margin-left: 2px; }
.form-control {
  width: 100%; padding: 13px 16px;
  font-family: inherit; font-size: 16px;
  color: var(--text); background: var(--surface);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--navy);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-help { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; height: 0; width: 0; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%231B365D' stroke-width='2'><polyline points='5 8 10 13 15 8'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }

/* ─── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 16px 20px; border-radius: var(--radius-sm);
  margin-bottom: 24px; font-size: 14px;
  border-left: 4px solid;
  background: var(--bg-alt);
}
.alert-error   { border-color: #B91C1C; background: #FEF2F2; color: #7F1D1D; }
.alert-success { border-color: var(--teal-dark); background: var(--teal-bg); color: var(--navy); }
.alert-info    { border-color: var(--navy); background: var(--bg-alt); color: var(--text); }

/* ─── Utility ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; } .mb-4 { margin-bottom: 32px; }
.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Print styles ──────────────────────────────────────────── */
@media print {
  /* Force backgrounds and colors to print (otherwise bars vanish) */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  .site-header, .site-footer, .results-actions-block, .nav-buttons, .progress { display: none !important; }
  body { background: white; padding: 0; font-size: 11pt; }
  .container, .results-frame { max-width: 100%; padding: 0; }
  .primary-card, .card-block, .style-card { page-break-inside: avoid; box-shadow: none; }
  .score-row__bar-track { background-color: #EBEDF1 !important; }
  /* Each bar fill keeps its own colour from the inline style attribute */
}
