﻿:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --card: #ffffff;
  --ink: #000000;
  --muted: #4b4b4b;
  --accent: #d20a0a;
  --accent-dark: #b10909;
  --line: #e0e0e0;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px 44px;
  max-width: 980px;
  margin: 0 auto;
}

.hero {
  background: #ffffff;
  color: #000000;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  border-top: 4px solid var(--accent);
}

.hero-inner h1 {
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 8px 0 6px;
  letter-spacing: 0.01em;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0;
}

.subhead {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
}

.intro-text p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  background: #fafafa;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.hero-stat {
  background: #ffffff;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--line);
}

.hero-stat span {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
}

main {
  display: grid;
  gap: 24px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.card-head h2 {
  margin: 0 0 6px;
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  font-size: 1.4rem;
}

.card-head p {
  margin: 0;
  color: var(--muted);
}

.card-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 12px 0 16px;
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

label span {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(210, 10, 10, 0.15);
}

input[type="radio"]:focus {
  outline: none;
  box-shadow: none;
}

select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.question-list {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.question {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
}

.question h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 12px;
  cursor: pointer;
  background: #ffffff;
  transition: border 0.2s ease, transform 0.2s ease;
}

.option input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
}

.option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.social-section h3 {
  margin: 18px 0 4px;
  font-size: 1.1rem;
}

.social-section p {
  margin: 0 0 10px;
  color: var(--muted);
}

.social-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(180px, 220px) minmax(140px, 1fr);
  align-items: center;
  gap: 12px;
}

.social-label {
  font-weight: 600;
  font-size: 0.95rem;
}

.social-label.right {
  text-align: right;
}

.social-scale {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.scale-option {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 8px 6px;
  display: grid;
  justify-items: center;
  gap: 6px;
  background: #fff;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
}

.scale-option input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.scale-option span {
  font-size: 0.8rem;
  color: var(--muted);
}

.scale-option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.brand-logo {
  width: 140px;
  max-width: 60%;
  height: auto;
  margin-bottom: 8px;
}

.card-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(210, 10, 10, 0.2);
}

.btn.primary:hover {
  background: var(--accent-dark);
}

.btn.ghost {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #2b2b2b;
}

.results {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.result-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid var(--line);
}

.result-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.result-card p {
  margin: 0 0 8px;
}

.overview-image {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.fineprint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 12px;
}

.inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.details-block {
  margin: 0 0 1.5rem;
}

.details-block details {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(30, 41, 59, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.details-block summary {
  cursor: pointer;
  font-weight: 600;
}

.details-content {
  padding-top: 0.75rem;
}

.details-content p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.details-content p:last-child {
  margin-bottom: 0;
}

.details-content .sub-details {
  margin: 10px 0;
  border: 1px solid rgba(30, 41, 59, 0.12);
  border-radius: 10px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.7);
}

.details-content .sub-details summary {
  font-weight: 600;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 720px) {
  .hero {
    padding: 24px;
  }

  .card {
    padding: 20px;
  }

  .social-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .social-label.right {
    text-align: left;
  }
}

.admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: -16px;
}

.admin-link {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  transition: background 0.15s, color 0.15s;
}

.admin-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── 360 Assessment Components ───────────────────────────── */

/* Behaviour rating row */
.behaviour-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.behaviour-row:last-of-type { border-bottom: none; }

.behaviour-name {
  flex: 1;
  min-width: 0;
}
.behaviour-desc {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 2px;
}

/* 5-point rating scale */
.rating-scale-5 {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.scale-option-360 {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}
.scale-option-360 input { display: none; }
.scale-option-360 span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.scale-option-360:hover span,
.scale-option-360.selected span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scale-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Progress bar */
.progress-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.3s ease;
}

/* Score bar (report) */
.score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.score-bar-fill {
  height: 10px;
  border-radius: 99px;
  transition: width 0.4s ease;
}
.score-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.score-bar-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.85rem;
}
.score-bar-label-row > span:first-child {
  width: 44px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* Category score row */
.category-score-row {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.category-score-row:last-child { border-bottom: none; }
.category-score-name { font-weight: 600; font-size: 0.9rem; }
.category-legend {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 4px;
}

/* Gap badge */
.gap-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.gap-badge.normal      { background: #f3f4f6; color: #6b7280; }
.gap-badge.noticeable  { background: #fef3c7; color: #92400e; }
.gap-badge.significant { background: #fee2e2; color: #991b1b; }

/* Coaching flag */
.coaching-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Status badge (dashboard) */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
}
.status-badge.pending   { background: #f3f4f6; color: #6b7280; }
.status-badge.invited   { background: #dbeafe; color: #1e40af; }
.status-badge.completed { background: #d1fae5; color: #065f46; }

/* Respondent rows */
.respondent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.respondent-row:last-child { border-bottom: none; }

.respondent-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}
.respondent-input-row input,
.respondent-input-row select {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
}

/* Result item (strengths/dev areas) */
.result-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.result-item:last-child { border-bottom: none; }
.result-rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.result-body { flex: 1; }

/* Report stats row */
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.report-stats .hero-stat {
  background: var(--bg);
  border: 1px solid var(--line);
}

/* Perception table */
.perception-table-wrap { overflow-x: auto; margin-top: 12px; }
.perception-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.perception-table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  font-weight: 600;
}
.perception-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.perception-table tr:last-child td { border-bottom: none; }

/* Written feedback quote */
.feedback-quote {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--bg);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Btn row */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 12px;
}

/* Field error */
.field-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .behaviour-row    { flex-direction: column; }
  .rating-scale-5   { justify-content: space-between; width: 100%; }
  .category-score-row { grid-template-columns: 1fr; }
  .respondent-input-row { grid-template-columns: 1fr; }
  .report-stats     { grid-template-columns: 1fr 1fr; }
}
