:root {
  --ink: #231F20;
  --paper: #ffffff;
  --accent: #95D600;
  --accent-50: rgba(118, 170, 0, 0.50);
  --secondary: #E6E7E8;
  --mid: #666666;
  --rule: #E6E7E8;

  /* APCITE section colors — Celtis brand palette */
  --section-a: #00AF9A;
  --section-p: #00829B;
  --section-c: #385CAD;
  --section-i: #7C4182;
  --section-t: #FF6C37;
  --section-e: #F5B335;
}

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
}

.page {
  max-width: 860px;
  margin: 0 auto;
  padding: 54px 54px 72px;
}

header {
  border-top: 3px solid var(--ink);
  padding: 36px 0 18px;
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 18px;
  animation: fadeUp 0.6s ease both;
}

.brand {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 9px;
}

.main-title {
  font-size: clamp(32px, 5.5vw, 52px);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.main-title em {
  font-style: normal;
  color: var(--accent);
}

.header-right {
  text-align: right;
}

.header-right .label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 4px;
}

.header-right .score-display {
  font-size: 42px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.header-right .score-display span {
  font-size: 18px;
  font-weight: 400;
  color: var(--mid);
}

.assessment-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 12px;
  margin-bottom: 18px;
  animation: fadeUp 0.6s 0.02s ease both;
}

.assessment-badge.dark {
  background: var(--ink);
  color: white;
}

/* NAME INPUT BLOCK (offering assessment) */
.name-block {
  border: 1px solid var(--rule);
  background: #f9f9f9;
  padding: 18px 27px;
  margin-bottom: 18px;
  animation: fadeUp 0.6s 0.03s ease both;
}

.name-block-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 9px;
  display: block;
}

.name-block-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.5;
}

.name-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.name-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.name-field label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}

.name-field input {
  border: 1px solid var(--rule);
  background: white;
  padding: 9px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease-in-out;
}

.name-field input:focus {
  border-color: var(--accent);
}

.name-field input::placeholder {
  color: #bbb;
  font-weight: 400;
}

.framing {
  background: var(--ink);
  color: white;
  padding: 18px 27px;
  margin-bottom: 18px;
  animation: fadeUp 0.6s 0.04s ease both;
  position: relative;
  overflow: hidden;
}

.framing::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(149, 214, 0, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.framing p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.framing strong {
  font-weight: 700;
  color: var(--accent);
}

.subtitle {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--mid);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
  margin-bottom: 18px;
  animation: fadeUp 0.6s 0.08s ease both;
}

.legend {
  display: flex;
  gap: 6px;
  margin-bottom: 27px;
  flex-wrap: wrap;
  align-items: center;
  animation: fadeUp 0.6s 0.1s ease both;
}

.legend-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  margin-right: 6px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 500;
  color: var(--mid);
}

.legend-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--mid);
  background: white;
}

.section {
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  background: white;
  animation: fadeUp 0.6s ease both;
  position: relative;
  overflow: hidden;
}

.section::before {
  content: attr(data-letter);
  position: absolute;
  right: -8px;
  top: -16px;
  font-size: 120px;
  font-weight: 900;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

.section-header {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
  z-index: 1;
}

.section-letter {
  font-size: 28px;
  font-weight: 900;
  text-align: center;
  padding: 14px 0;
  color: white;
  text-transform: uppercase;
}

.section-info {
  padding: 9px 18px;
}

.section-word {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.65);
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.section-score-badge {
  padding: 9px 18px;
  text-align: center;
}

.score-num {
  font-size: 26px;
  font-weight: 900;
  color: white;
  line-height: 1;
  display: block;
}

.score-of {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.questions {
  padding: 18px;
  position: relative;
  z-index: 1;
}

.question {
  margin-bottom: 18px;
}

.question:last-child {
  margin-bottom: 0;
}

.q-text {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 4px;
}

.q-subtext {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--mid);
  margin-bottom: 9px;
  line-height: 1.55;
}

.rating {
  display: flex;
  gap: 7px;
  align-items: center;
}

.rating input[type="radio"] {
  display: none;
}

.rating label {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--mid);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  user-select: none;
  background: white;
}

.rating label:hover {
  transform: scale(1.12);
}

/* APCITE section color rules */
[data-section="A"] .section-header { background: var(--section-a); }
[data-section="A"] .rating label:hover,
[data-section="A"] input:checked + label { border-color: var(--section-a); background: var(--section-a); color: white; }

[data-section="P"] .section-header { background: var(--section-p); }
[data-section="P"] .rating label:hover,
[data-section="P"] input:checked + label { border-color: var(--section-p); background: var(--section-p); color: white; }

[data-section="C"] .section-header { background: var(--section-c); }
[data-section="C"] .rating label:hover,
[data-section="C"] input:checked + label { border-color: var(--section-c); background: var(--section-c); color: white; }

[data-section="I"] .section-header { background: var(--section-i); }
[data-section="I"] .rating label:hover,
[data-section="I"] input:checked + label { border-color: var(--section-i); background: var(--section-i); color: white; }

[data-section="T"] .section-header { background: var(--section-t); }
[data-section="T"] .rating label:hover,
[data-section="T"] input:checked + label { border-color: var(--section-t); background: var(--section-t); color: white; }

[data-section="E"] .section-header { background: var(--section-e); }
[data-section="E"] .rating label:hover,
[data-section="E"] input:checked + label { border-color: var(--section-e); background: var(--section-e); color: var(--ink); }

/* Dark text for light section headers (orange + yellow) */
[data-section="T"] .section-letter,
[data-section="T"] .section-title,
[data-section="T"] .score-num,
[data-section="E"] .section-letter,
[data-section="E"] .section-title,
[data-section="E"] .score-num { color: var(--ink); }

[data-section="T"] .section-word,
[data-section="T"] .score-of,
[data-section="E"] .section-word,
[data-section="E"] .score-of { color: rgba(35, 31, 32, 0.55); }

/* RESULTS */
.results {
  display: none;
  margin-bottom: 36px;
  animation: fadeUp 0.5s ease both;
}

.results.visible {
  display: block;
}

.results-inner {
  background: var(--ink);
  color: white;
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.results-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(149, 214, 0, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.results-name {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.results-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.result-card {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.result-card.highlight {
  border-color: var(--accent);
  background: rgba(149, 214, 0, 0.08);
}

.result-card .rc-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 6px;
}

.result-card .rc-value {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 4px;
}

.result-card .rc-sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.4;
}

.result-card.highlight .rc-value {
  color: var(--accent);
}

.bar-chart {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: 22px 100px 1fr 36px;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}

.bar-letter {
  font-size: 16px;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
}

.bar-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.bar-track {
  background: rgba(255, 255, 255, 0.08);
  height: 8px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  width: 0%;
}

.bar-score {
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-align: right;
}

.bar-row.weakest .bar-name {
  color: var(--accent);
}

.bar-row.weakest .bar-score {
  color: var(--accent);
}

.diagnosis {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 18px;
  position: relative;
  z-index: 1;
}

.diagnosis-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 9px;
}

.diagnosis-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
}

.diagnosis-cta {
  margin-top: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.diagnosis-cta a{
  color: var(--secondary); 
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px; 
  transition: all .25s ease-in-out;
}

.diagnosis-cta a:hover, .diagnosis-cta a:focus{
  color: var(--accent);
  text-decoration-thickness: 3px; 
}

/* SUBMIT */
.submit-row {
  text-align: center;
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.5s ease both;
}

.btn-submit {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--accent);
  padding: 16px 48px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  box-shadow: 2px 4px 12px 0px var(--accent-50);
}

.btn-submit:hover {
  background: transparent;
  box-shadow: none;
}

.btn-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: none;
}

.btn-reset {
  background: transparent;
  color: var(--mid);
  border: 1px solid var(--rule);
  padding: 16px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  margin-left: 9px;
}

.btn-reset:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.progress-note {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--mid);
  margin-top: 9px;
}

/* CONTACT SECTION */
.contact-section {
  margin-bottom: 36px;
  animation: fadeUp 0.6s ease both;
}

.contact-inner {
  border: 1px solid var(--rule);
  background: #f9f9f9;
  padding: 36px;
}

.contact-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 9px;
}

.contact-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.contact-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 3px 9px;
}

.contact-desc {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.7;
  margin-bottom: 27px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 18px;
}

.contact-desc a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: text-decoration-color 0.5s ease-in-out;
}

.contact-desc a:hover {
  text-decoration-color: var(--accent);
}

.contact-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.contact-fields.full {
  grid-template-columns: 1fr;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
}

.field-input {
  border: 1px solid var(--rule);
  background: white;
  padding: 9px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
  outline: none;
  transition: border-color 0.3s ease-in-out;
  width: 100%;
}

.field-input:focus {
  border-color: var(--accent);
}

.contact-note {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--mid);
  margin-bottom: 18px;
  line-height: 1.6;
}

.contact-note a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  transition: text-decoration-color 0.5s ease-in-out;
}

.contact-note a:hover {
  text-decoration-color: var(--accent);
}

.btn-contact {
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--accent);
  padding: 16px 36px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  box-shadow: 2px 4px 12px 0px var(--accent-50);
}

.btn-contact:hover {
  background: transparent;
  box-shadow: none;
}

.contact-success {
  display: none;
  text-align: center;
  padding: 36px 0 18px;
}

.contact-success.visible {
  display: block;
}

.success-icon {
  font-size: 36px;
  margin-bottom: 9px;
  color: var(--accent);
}

.success-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 9px;
  text-transform: uppercase;
}

.success-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--mid);
  line-height: 1.7;
}

/* FOOTER */
footer {
  border-top: 3px solid var(--ink);
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  animation: fadeUp 0.6s 0.55s ease both;
}

.footer-left {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

.footer-left strong {
  color: var(--ink);
  font-weight: 700;
}

.footer-url {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-url a{
  color: var(--accent); 
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px; 
  transition: all .25s ease-in-out;
}

.footer-url a:hover, .footer-url a:focus{
  color: var(--mid);
  text-decoration-thickness: 3px; 
}

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

@media (max-width: 600px) {
  .page { padding: 27px 18px 54px; }
  header { grid-template-columns: 1fr; }
  .name-input-row { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 18px 72px 1fr 28px; }
  .contact-fields { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 9px; }
}
