:root {
  --cc-ink: #171717;
  --cc-muted: #6e6e6a;
  --cc-line: #deddd7;
  --cc-paper: #ffffff;
  --cc-surface: #f6f4ef;
  --cc-yellow: #efb94f;
  --cc-blue: #7697a4;
  --cc-coral: #e7858d;
  --cc-shadow: 0 18px 60px rgba(17, 17, 17, 0.08);
  --cc-radius-lg: 28px;
  --cc-radius-md: 16px;
  --cc-radius-sm: 10px;
}

.cc-assessment, .cc-assessment * { box-sizing: border-box; }
.cc-assessment {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 56px;
  color: var(--cc-ink);
  font-family: inherit;
  line-height: 1.5;
}
.cc-shell {
  background: var(--cc-paper);
  border: 1px solid var(--cc-line);
  border-radius: var(--cc-radius-lg);
  box-shadow: var(--cc-shadow);
  overflow: hidden;
}
.cc-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--cc-line);
  background: rgba(255,255,255,.94);
}
.cc-kicker {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cc-progress-wrap { flex: 1; max-width: 420px; }
.cc-progress-track {
  height: 7px;
  border-radius: 999px;
  background: #ecebe6;
  overflow: hidden;
}
.cc-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cc-blue), var(--cc-coral), var(--cc-yellow));
  transition: width .35s ease;
}
.cc-progress-label { margin-top: 6px; font-size: 12px; color: var(--cc-muted); text-align: right; }
.cc-panel { padding: clamp(30px, 6vw, 72px); min-height: 560px; display: flex; flex-direction: column; justify-content: center; }
.cc-eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--cc-muted); }
.cc-title { margin: 0; font-size: clamp(36px, 6vw, 64px); line-height: .98; letter-spacing: -.035em; }
.cc-subtitle { max-width: 720px; margin: 18px 0 0; font-size: clamp(17px, 2vw, 21px); color: #4f4f4b; }
.cc-note { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--cc-surface); font-size: 14px; color: #4f4f4b; }
.cc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 32px; }
.cc-field { display: flex; flex-direction: column; gap: 7px; }
.cc-field--full { grid-column: 1 / -1; }
.cc-label { font-size: 13px; font-weight: 800; }
.cc-input, .cc-select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cbc9c2;
  border-radius: 10px;
  background: white;
  color: var(--cc-ink);
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cc-input:focus, .cc-select:focus { border-color: var(--cc-ink); box-shadow: 0 0 0 3px rgba(23,23,23,.08); }
.cc-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.cc-actions--end { justify-content: flex-end; }
.cc-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, opacity .16s ease, background .16s ease;
}
.cc-btn:hover { transform: translateY(-1px); }
.cc-btn:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.cc-btn--primary { background: var(--cc-ink); color: white; }
.cc-btn--secondary { background: var(--cc-surface); color: var(--cc-ink); }
.cc-error { margin-top: 14px; color: #9d2c35; font-size: 14px; font-weight: 700; }

.cc-question-wrap { animation: ccSlideIn .32s cubic-bezier(.22,.9,.3,1); }
.cc-question-number { font-size: 13px; color: var(--cc-muted); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.cc-question { max-width: 800px; margin: 12px 0 36px; font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.cc-scale { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; }
.cc-option {
  min-height: 94px;
  padding: 12px 8px;
  border: 1px solid #d4d2ca;
  border-radius: 14px;
  background: white;
  color: var(--cc-ink);
  cursor: pointer;
  font: inherit;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.cc-option:hover { border-color: #a7a59f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(17,17,17,.07); }
.cc-option.is-selected { border-color: var(--cc-ink); background: var(--cc-ink); color: white; }
.cc-option-value { display: block; font-size: 23px; font-weight: 900; line-height: 1; }
.cc-option-label { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; }

.cc-calculating { text-align: center; align-items: center; }
.cc-loader {
  width: 64px; height: 64px; margin-bottom: 24px; border: 7px solid #ecebe6; border-top-color: var(--cc-coral); border-radius: 50%; animation: ccSpin .9s linear infinite;
}
.cc-reveal { animation: ccReveal .62s cubic-bezier(.2,.9,.25,1); }
.cc-result-hero { padding: clamp(34px, 5vw, 60px); background: var(--cc-ink); color: white; position: relative; overflow: hidden; }
.cc-result-hero::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -105px; border-radius: 50%; background: var(--cc-yellow); opacity: .95; }
.cc-result-hero > * { position: relative; z-index: 1; }
.cc-result-title { margin: 8px 0 0; font-size: clamp(48px, 9vw, 92px); line-height: .9; letter-spacing: -.05em; }
.cc-result-subtitle { margin: 18px 0 0; font-size: 18px; max-width: 760px; color: rgba(255,255,255,.82); }
.cc-result-body { padding: clamp(28px, 5vw, 54px); }
.cc-score-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 0 0 36px; }
.cc-score-card { padding: 18px; border-radius: 14px; background: var(--cc-surface); }
.cc-score-letter { font-size: 13px; font-weight: 900; color: var(--cc-muted); }
.cc-score-number { display: block; margin-top: 4px; font-size: 34px; font-weight: 900; line-height: 1; }
.cc-score-bar { height: 7px; margin-top: 12px; background: #deddd7; border-radius: 999px; overflow: hidden; }
.cc-score-fill { height: 100%; background: var(--cc-ink); border-radius: 999px; transform-origin: left; animation: ccBar .7s .2s both ease-out; }
.cc-section { padding: 30px 0; border-top: 1px solid var(--cc-line); }
.cc-section:first-child { border-top: 0; padding-top: 0; }
.cc-section h2 { margin: 0 0 12px; font-size: clamp(26px,3vw,36px); letter-spacing: -.025em; }
.cc-section h3 { margin: 0 0 8px; font-size: 21px; }
.cc-section p { margin: 0 0 14px; color: #4f4f4b; }
.cc-guidance { margin: 16px 0 0; padding-left: 20px; }
.cc-guidance li { margin: 8px 0; }
.cc-email-status { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--cc-surface); font-size: 14px; }
.cc-email-status.is-error { background: #fff0f1; color: #8a2630; }

.cc-gift-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.cc-gift-card { padding: 22px; border: 1px solid var(--cc-line); border-radius: 18px; background: white; }
.cc-gift-rank { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 999px; background: var(--cc-yellow); font-weight: 900; font-size: 13px; }
.cc-gift-name { margin: 14px 0 3px; font-size: 22px; line-height: 1.1; }
.cc-gift-score { font-size: 13px; color: var(--cc-muted); font-weight: 800; }
.cc-gift-copy { margin-top: 14px !important; font-size: 14px; }
.cc-meta { font-size: 13px; color: var(--cc-muted); margin-top: 10px; }
.cc-all-results summary { cursor: pointer; font-weight: 900; font-size: 17px; }
.cc-results-table { width: 100%; border-collapse: collapse; margin-top: 18px; }
.cc-results-table th, .cc-results-table td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--cc-line); font-size: 14px; }
.cc-results-table th:last-child, .cc-results-table td:last-child { text-align: right; }
.cc-small { font-size: 13px; color: var(--cc-muted); }
.cc-turnstile { margin-top: 18px; min-height: 1px; }

@keyframes ccSlideIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ccReveal { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ccSpin { to { transform: rotate(360deg); } }
@keyframes ccBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 720px) {
  .cc-assessment { padding: 16px 12px 36px; }
  .cc-topbar { padding: 14px 16px; align-items: flex-start; }
  .cc-progress-wrap { max-width: 58%; }
  .cc-panel { min-height: 520px; padding: 30px 20px; }
  .cc-grid { grid-template-columns: 1fr; }
  .cc-field--full { grid-column: auto; }
  .cc-scale { grid-template-columns: 1fr; gap: 8px; }
  .cc-option { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-align: left; }
  .cc-option-value { font-size: 19px; width: 26px; }
  .cc-option-label { margin: 0; font-size: 14px; }
  .cc-score-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cc-gift-grid { grid-template-columns: 1fr; }
  .cc-result-hero::after { width: 170px; height: 170px; right: -70px; top: -70px; }
}

@media print {
  body * { visibility: hidden !important; }
  .cc-assessment, .cc-assessment * { visibility: visible !important; }
  .cc-assessment { position: absolute; left: 0; top: 0; max-width: none; padding: 0; }
  .cc-shell { box-shadow: none; border: 0; }
  .cc-topbar, .cc-actions, .cc-email-status { display: none !important; }
  .cc-result-hero { background: white !important; color: black !important; padding: 20px 0; }
  .cc-result-hero::after { display: none; }
  .cc-result-subtitle { color: #444 !important; }
  .cc-result-body { padding: 0; }
  .cc-gift-grid { grid-template-columns: 1fr 1fr; }
  details > * { display: block !important; }
}
/* Community Church brand alignment - v0.2 */
:root {
  --cc-blue: #4c6b9c;
  --cc-maroon: #891849;
  --cc-ink: #1f1915;
  --cc-muted: #665f5b;
  --cc-line: #ded9d5;
  --cc-paper: #ffffff;
  --cc-surface: #f7f6f5;
  --cc-shadow: none;
  --cc-radius-lg: 8px;
  --cc-radius-md: 6px;
  --cc-radius-sm: 4px;
}

.cc-assessment {
  max-width: 1080px;
  padding: 36px 20px 64px;
  color: var(--cc-ink);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cc-assessment h1,
.cc-assessment h2,
.cc-assessment h3,
.cc-assessment .cc-title,
.cc-assessment .cc-question,
.cc-assessment .cc-result-title,
.cc-assessment .cc-gift-name,
.cc-assessment .cc-btn,
.cc-assessment .cc-option,
.cc-assessment .cc-kicker,
.cc-assessment .cc-eyebrow,
.cc-assessment .cc-label {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cc-shell {
  border: 1px solid #ece8e5;
  border-radius: var(--cc-radius-lg);
  box-shadow: none;
}
.cc-topbar {
  padding: 20px 28px;
  border-bottom: 1px solid #ece8e5;
}
.cc-kicker {
  color: var(--cc-ink);
  letter-spacing: .11em;
  font-weight: 700;
}
.cc-progress-track {
  height: 5px;
  border-radius: 1px;
  background: #e9e6e3;
}
.cc-progress-bar {
  border-radius: 1px;
  background: var(--cc-blue);
}
.cc-progress-label { color: var(--cc-muted); }
.cc-panel {
  min-height: 540px;
  padding: clamp(34px, 6vw, 72px);
}
.cc-eyebrow {
  color: var(--cc-maroon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
}
.cc-title {
  max-width: 820px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 800;
}
.cc-subtitle {
  max-width: 720px;
  color: #4f4945;
  font-size: clamp(16px, 2vw, 20px);
}
.cc-note {
  border-left: 4px solid var(--cc-blue);
  border-radius: 0;
  background: #f7f8fa;
  color: #4f4945;
}
.cc-label { font-weight: 700; }
.cc-input, .cc-select {
  min-height: 50px;
  border: 1px solid #d4d0cd;
  border-radius: 3px;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}
.cc-input:focus, .cc-select:focus {
  border-color: var(--cc-blue);
  box-shadow: 0 0 0 2px rgba(76,107,156,.14);
}
.cc-btn {
  min-height: 46px;
  border-radius: 8px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.cc-btn--primary { background: var(--cc-blue); color: #fff; }
.cc-btn--primary:hover { background: #405d89; }
.cc-btn--secondary {
  border: 1px solid #d7d2cf;
  background: #fff;
  color: var(--cc-ink);
}
.cc-btn--secondary:hover { border-color: var(--cc-blue); }
.cc-question-number { color: var(--cc-blue); }
.cc-question {
  max-width: 860px;
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 600;
  letter-spacing: -.035em;
}
.cc-option {
  min-height: 88px;
  border: 1px solid #d8d3d0;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cc-option:hover {
  border-color: var(--cc-blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(31,25,21,.07);
}
.cc-option.is-selected {
  border-color: var(--cc-maroon);
  background: var(--cc-maroon);
  color: #fff;
}
.cc-option-value { font-weight: 800; }
.cc-loader {
  border-color: #ebe7e4;
  border-top-color: var(--cc-maroon);
}
.cc-result-hero {
  background: linear-gradient(145deg, var(--cc-blue) 0%, #58678f 42%, var(--cc-maroon) 100%);
}
.cc-result-hero::after { display: none; }
.cc-result-title {
  font-weight: 800;
  letter-spacing: -.055em;
}
.cc-result-subtitle { color: rgba(255,255,255,.9); }
.cc-score-card {
  border: 1px solid #e8e4e1;
  border-radius: 5px;
  background: #fff;
}
.cc-score-letter { color: var(--cc-blue); }
.cc-score-number { color: var(--cc-ink); }
.cc-score-bar {
  height: 5px;
  border-radius: 1px;
  background: #e8e4e1;
}
.cc-score-fill {
  border-radius: 1px;
  background: var(--cc-maroon);
}
.cc-section h2,
.cc-section h3 { font-weight: 700; }
.cc-gift-card {
  border-color: #e5e0dd;
  border-radius: 6px;
}
.cc-gift-rank {
  min-width: 34px;
  height: 30px;
  border-radius: 3px;
  background: var(--cc-maroon);
  color: #fff;
}
.cc-gift-name { font-weight: 700; }
.cc-all-results summary { color: var(--cc-blue); }
.cc-email-status { border-radius: 3px; }

@media (max-width: 720px) {
  .cc-assessment { padding: 18px 12px 40px; }
  .cc-panel { min-height: 500px; }
  .cc-option { border-radius: 4px; }
}
