:root {
  --navy: #0C3354;
  --steel: #297496;
  --aqua: #62B6D0;
  --pale-aqua: #BEEAF4;
  --green: #005F3F;
  --mint: #98D1B5;
  --pale-mint: #B9E9C9;
  --amber: #E2A855;
  --deep-amber: #D39B3A;
  --gold: #FFB838;
  --soft-yellow: #FFD580;
  --white: #FFFFFF;
  --ink: #173042;
  --muted: #5B6B77;
  --surface: #F6FAFC;
  --border: #C7D9E2;
  --shadow: 0 14px 36px rgba(12, 51, 84, 0.14);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(98, 182, 208, 0.22), transparent 32rem),
    linear-gradient(180deg, #F8FCFD 0%, #EEF7F8 100%);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
textarea:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 4px solid rgba(255, 184, 56, 0.55);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -6rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(12, 51, 84, 0.98), rgba(41, 116, 150, 0.96)),
    var(--navy);
  border-bottom: 8px solid var(--gold);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 2.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.course-label {
  margin: 0 0 0.3rem;
  color: var(--soft-yellow);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2rem, 5vw, 3.55rem);
  line-height: 1.08;
}

.header-subtitle {
  max-width: 790px;
  margin: 0.8rem 0 0;
  color: #E8F8FC;
  font-size: 1.12rem;
}

.header-mark {
  min-width: 174px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.header-mark span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  font-size: 1.55rem;
  font-weight: 900;
}

.header-mark span:nth-child(1) {
  color: var(--navy);
  background: var(--gold);
}

.header-mark span:nth-child(2) {
  color: var(--navy);
  background: var(--pale-aqua);
}

.header-mark span:nth-child(3) {
  color: var(--green);
  background: var(--pale-mint);
}

.header-mark span:nth-child(4) {
  color: var(--white);
  background: var(--steel);
}

.page-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 2.5rem auto 4rem;
}

.panel {
  padding: clamp(1.35rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(41, 116, 150, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

.section-kicker {
  margin-bottom: 0.35rem;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.15;
}

h3 {
  color: var(--navy);
  line-height: 1.25;
}

.intro-panel > p {
  max-width: 900px;
  font-size: 1.05rem;
}


.model-note {
  max-width: 930px;
  margin: 1.35rem 0 0;
  padding: 1rem 1.15rem;
  color: var(--navy);
  background: linear-gradient(100deg, rgba(190, 234, 244, 0.58), rgba(255, 213, 128, 0.34));
  border: 1px solid rgba(41, 116, 150, 0.28);
  border-left: 7px solid var(--gold);
  border-radius: var(--radius-md);
}

.style-overview {
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.style-card {
  min-height: 150px;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border-left: 8px solid transparent;
}

.style-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.28rem;
}

.style-card p {
  margin: 0;
}

.style-dominance {
  background: #FFF6DC;
  border-left-color: var(--deep-amber);
}

.style-influence {
  background: #EAF7FB;
  border-left-color: var(--aqua);
}

.style-steadiness {
  background: #EAF8F1;
  border-left-color: var(--green);
}

.style-conscientiousness {
  background: #EEF4F8;
  border-left-color: var(--steel);
}

.intro-actions {
  padding-top: 0.5rem;
}

.privacy-note {
  max-width: 780px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.button {
  min-height: 48px;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(12, 51, 84, 0.16);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button-primary {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
}

.button-primary:hover:not(:disabled) {
  background: var(--soft-yellow);
  border-color: var(--deep-amber);
}

.button-secondary {
  color: var(--white);
  background: var(--steel);
  border-color: var(--steel);
}

.button-secondary:hover:not(:disabled) {
  background: var(--navy);
  border-color: var(--navy);
}

.button-quiet {
  color: var(--navy);
  background: var(--white);
  border-color: var(--border);
}

.button-quiet:hover:not(:disabled) {
  background: var(--pale-aqua);
  border-color: var(--steel);
}

.assessment-header,
.results-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.question-counter {
  margin: 0 0 0.2rem;
  color: var(--steel);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.progress-track {
  width: 100%;
  height: 16px;
  margin: 1.2rem 0 1.8rem;
  overflow: hidden;
  background: #DCEAF0;
  border-radius: 999px;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--steel), var(--aqua), var(--gold));
  border-radius: inherit;
  transition: width 0.3s ease;
}

.question-card {
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.scenario-text {
  margin: 0 0 1.4rem;
  color: var(--navy);
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 800;
  line-height: 1.45;
}

.options-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.answer-options {
  display: grid;
  gap: 0.8rem;
}

.answer-option {
  position: relative;
}

.answer-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.answer-option label {
  min-height: 74px;
  padding: 1rem 1.1rem 1rem 3.35rem;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.answer-option label::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  width: 22px;
  height: 22px;
  background: var(--white);
  border: 3px solid var(--steel);
  border-radius: 50%;
}

.answer-option label:hover {
  border-color: var(--aqua);
  transform: translateX(3px);
}

.answer-option input:focus-visible + label {
  outline: 4px solid rgba(255, 184, 56, 0.55);
  outline-offset: 3px;
}

.answer-option input:checked + label {
  color: var(--navy);
  background: #EAF7FB;
  border-color: var(--steel);
  box-shadow: inset 0 0 0 1px var(--steel);
}

.answer-option input:checked + label::before {
  background: radial-gradient(circle, var(--gold) 0 42%, var(--white) 45% 58%, var(--steel) 61% 100%);
}

.assessment-actions,
.reflection-actions,
.final-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.assessment-actions {
  justify-content: space-between;
}

.selection-message,
.save-message {
  min-height: 1.6rem;
  margin: 0.75rem 0 0;
  color: var(--green);
  font-weight: 800;
}

.results-disclaimer {
  padding: 1rem 1.1rem;
  color: var(--navy);
  background: #FFF7DE;
  border-left: 6px solid var(--gold);
  border-radius: var(--radius-sm);
}

.result-summary-grid {
  margin: 1.6rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.result-summary-card {
  padding: 1.35rem;
  border-radius: var(--radius-md);
}

.result-summary-card h3 {
  margin: 0.15rem 0 0.6rem;
  font-size: 1.65rem;
}

.result-summary-card p:last-child {
  margin-bottom: 0;
}

.primary-result-card {
  background: linear-gradient(135deg, #E8F7FB, #D8F0F7);
  border: 2px solid var(--steel);
}

.secondary-result-card {
  background: linear-gradient(135deg, #FFF7DF, #FFE9AD);
  border: 2px solid var(--deep-amber);
}

.result-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scores-section,
.profile-section,
.adaptation-section,
.reflection-section {
  margin-top: 2.2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.scores-section h3,
.profile-section h3,
.adaptation-section h3,
.reflection-section h3 {
  margin-top: 0;
  font-size: 1.55rem;
}

.score-bars {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.score-row {
  display: grid;
  grid-template-columns: 130px 1fr 54px;
  align-items: center;
  gap: 0.8rem;
}

.score-name {
  color: var(--navy);
  font-weight: 900;
}

.score-track {
  height: 22px;
  overflow: hidden;
  background: #E1EDF1;
  border-radius: 999px;
}

.score-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  transition: width 0.7s ease;
}

.score-fill.Dominance {
  background: var(--deep-amber);
}

.score-fill.Influence {
  background: var(--aqua);
}

.score-fill.Steadiness {
  background: var(--green);
}

.score-fill.Conscientiousness {
  background: var(--steel);
}

.score-value {
  text-align: right;
  color: var(--navy);
  font-weight: 900;
}

.profile-content {
  display: grid;
  gap: 1rem;
}

.profile-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.profile-card h4,
.adaptation-card h4 {
  margin: 0 0 0.5rem;
  color: var(--navy);
  font-size: 1.15rem;
}

.profile-card p,
.adaptation-card p {
  margin: 0;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.profile-detail {
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.profile-detail strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
}

.adaptation-cards {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.adaptation-card {
  padding: 1.15rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 7px solid var(--deep-amber);
  border-radius: var(--radius-md);
  box-shadow: 0 7px 18px rgba(12, 51, 84, 0.08);
}

.adaptation-card[data-style="Influence"] {
  border-top-color: var(--aqua);
}

.adaptation-card[data-style="Steadiness"] {
  border-top-color: var(--green);
}

.adaptation-card[data-style="Conscientiousness"] {
  border-top-color: var(--steel);
}

.reflection-grid {
  display: grid;
  gap: 1rem;
}

.reflection-prompt {
  display: grid;
  gap: 0.55rem;
  color: var(--navy);
  font-weight: 800;
}

.reflection-prompt textarea {
  width: 100%;
  resize: vertical;
  padding: 0.9rem;
  color: var(--ink);
  background: #FBFDFE;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 400;
  line-height: 1.5;
}

.reflection-prompt textarea:focus {
  border-color: var(--steel);
}

.final-actions {
  justify-content: center;
}

.site-footer {
  padding: 1.5rem 1rem 2.2rem;
  color: #DDEFF4;
  background: var(--navy);
  text-align: center;
}

.site-footer p {
  width: min(950px, 100%);
  margin: 0 auto;
  font-size: 0.9rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .header-inner,
  .assessment-header,
  .results-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .header-mark {
    display: none;
  }

  .style-overview,
  .result-summary-grid,
  .adaptation-cards,
  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .score-row {
    grid-template-columns: 96px 1fr 42px;
    gap: 0.5rem;
  }

  .assessment-actions .button,
  .reflection-actions .button,
  .results-heading-row .button {
    width: 100%;
  }
}

@media print {
  body {
    background: var(--white);
  }

  .site-header,
  .site-footer,
  #intro-screen,
  #assessment-screen,
  .results-heading-row .button,
  .reflection-actions,
  .final-actions,
  .skip-link {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .panel {
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .adaptation-card,
  .profile-card,
  .result-summary-card {
    break-inside: avoid;
  }

  textarea {
    min-height: 7rem;
    border: 1px solid #777 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
