:root {
  color-scheme: light;
  --teal: #349F90;
  --teal-dark: #007879;
  --blue: #003F5D;
  --navy: #141F39;
  --gold: #EABC00;
  --gold-dark: #B48A00;
  --orange: #E74011;
  --red: #AE0F0A;
  --lime: #A2BF1A;
  --olive: #708C21;
  --ink: #18253B;
  --muted: #5B6878;
  --line: #DDE6E2;
  --canvas: #F5F7F5;
  --surface: #FFFFFF;
  font-family: "Frutiger 57 Condensed", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); }
a { color: var(--teal-dark); text-decoration: none; font-weight: 650; }
a:hover { color: var(--blue); text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: 13px max(22px, calc((100vw - 1160px) / 2));
  background: var(--surface);
  border-top: 5px solid var(--teal-dark);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(20, 31, 57, .05);
}
.brand { display: inline-flex; align-items: center; gap: 15px; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: clamp(172px, 20vw, 230px); height: auto; }
.brand-divider { height: 32px; width: 1px; background: #D6DFDC; }
.brand-section {
  color: var(--blue);
  font-family: "Speak TF Bold", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-weight: 800;
  letter-spacing: .035em;
  font-size: 15px;
  text-transform: uppercase;
}
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; }
.top nav a { color: var(--blue); font-size: 14px; }
.top nav a:hover { color: var(--teal-dark); }
.container { width: min(1160px, 100%); min-height: 70vh; margin: 38px auto; padding: 0 20px; }
footer {
  position: relative;
  margin-top: 42px;
  padding: 30px 20px 34px;
  text-align: center;
  color: #F4F6F7;
  background: var(--navy);
  font-size: 14px;
}
footer p { margin: 0 0 5px; color: #fff; font-weight: 700; letter-spacing: .025em; }
footer small { color: #D4DCE2; }
.footer-accent { position: absolute; top: 0; left: calc(50% - 60px); width: 120px; height: 4px; background: var(--gold); }

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 900px;
  margin: 18px 0 42px;
  padding: clamp(30px, 5vw, 58px);
  background: linear-gradient(120deg, #FFFFFF 0%, #FFFFFF 70%, #EAF4F1 100%);
  border: 1px solid #D9E7E2;
  border-left: 6px solid var(--teal-dark);
  border-radius: 3px 22px 3px 22px;
  box-shadow: 0 14px 35px rgba(20, 31, 57, .07);
}
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.hero::before {
  width: 178px; height: 12px; right: -20px; bottom: 40px;
  background: var(--gold); transform: rotate(-30deg);
}
.hero::after {
  width: 104px; height: 104px; right: 50px; top: 30px;
  border: 10px solid rgba(52, 159, 144, .15); transform: rotate(30deg);
}
.hero > * { position: relative; z-index: 1; max-width: 720px; }
.eyebrow { color: var(--teal-dark); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 {
  color: var(--navy);
  font-family: "Speak TF Bold", "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-weight: 800;
}
h1 { line-height: 1.12; letter-spacing: -.025em; }
.hero h1 { margin: 14px 0; font-size: clamp(34px, 5vw, 55px); }
.hero p { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.55; }
h2 { margin-top: 32px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px 16px 4px 16px;
  padding: 25px;
  margin: 18px 0;
  box-shadow: 0 8px 25px rgba(20, 31, 57, .055);
}
.card h3 { margin: 8px 0; }
.card p { color: var(--muted); line-height: 1.6; }
.card small { color: var(--teal-dark); font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.narrow { max-width: 560px; margin: 30px auto; }
.center { text-align: center; }
.success-icon { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 50%; background: #E6F3EE; color: var(--teal-dark); font-size: 38px; font-weight: 800; }

.btn {
  display: inline-block;
  appearance: none;
  border: 0;
  border-radius: 3px 12px 3px 12px;
  padding: 13px 20px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--blue); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn.secondary { background: #E8F1EF; color: var(--blue); }
.btn.secondary:hover { background: #D8E9E4; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.linkbtn { padding: 5px; border: 0; background: none; color: var(--teal-dark); font: inherit; font-weight: 700; cursor: pointer; }
.inline { display: inline; }
.full { width: 100%; margin-top: 20px; }

label { display: block; margin-top: 17px; color: var(--navy); font-weight: 700; }
input:not([type=radio]):not([type=checkbox]), select, textarea {
  display: block; width: 100%; margin-top: 7px; padding: 12px 14px;
  border: 1px solid #C9D6D1; border-radius: 3px 10px 3px 10px;
  background: #fff; color: var(--ink); font: inherit;
}
input:not([type=radio]):not([type=checkbox]):focus, select:focus, textarea:focus { border-color: var(--teal-dark); }
textarea { min-height: 80px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.alert { padding: 13px 16px; border-left: 4px solid var(--gold); border-radius: 2px 10px 2px 10px; background: #FFF7D9; color: #574300; }
.error { border-left-color: var(--red); background: #FCE9E6; color: #72120E; }
.score { color: var(--teal-dark); font-size: 38px; font-weight: 800; }
.score small, .muted { color: var(--muted); }
.tablewrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
td, th { padding: 12px 15px; text-align: left; border-bottom: 1px solid #E5EBE8; }
th { background: var(--navy); color: #fff; }

.survey-shell { max-width: 850px; margin: auto; }
.progress { height: 10px; margin: 22px 0 8px; overflow: hidden; border-radius: 100px; background: #DCE6E2; }
.progress > div { width: 0; height: 100%; background: linear-gradient(90deg, var(--teal-dark), var(--teal), var(--lime)); transition: width .25s; }
.stepcount { color: var(--muted); font-size: 13px; }
.question-step { min-height: 330px; padding: 38px 26px; }
.question-step[hidden] { display: none; }
.question-step h2 { font-size: clamp(21px, 3vw, 29px); line-height: 1.35; }
.rating-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 35px 0; }
.rating {
  display: flex; min-width: 0; flex-direction: column; align-items: center; gap: 8px;
  margin: 0; padding: 12px 3px; border: 2px solid #E0E8E4; border-radius: 4px 14px 4px 14px;
  text-align: center; cursor: pointer; transition: .15s;
}
.rating input { position: absolute; opacity: 0; }
.rating:has(input:checked) { border-color: var(--teal-dark); background: #E8F3F0; transform: translateY(-3px); }
.rating:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.face { font-size: clamp(28px, 5vw, 46px); line-height: 1.3; }
.rating-label { color: var(--muted); font-size: 12px; }
.rating-number { color: var(--blue); font-size: 12px; font-weight: 800; }
.actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.review-item { padding: 15px 0; border-bottom: 1px solid #E6ECE9; }
.review-item p { margin: 4px 0; }
.question-step .check input { width: 20px; height: 20px; accent-color: var(--teal-dark); }

@media (max-width: 700px) {
  .top { gap: 12px; padding: 12px 18px; }
  .brand { gap: 10px; }
  .brand-logo { width: clamp(150px, 42vw, 205px); }
  .brand-divider { height: 25px; }
  .brand-section { font-size: 12px; }
  .top nav { gap: 8px 13px; font-size: 12px; }
  .container { margin: 23px auto; padding: 0 16px; }
  .hero { margin-top: 8px; padding: 29px 22px; }
  .hero::after { right: 15px; top: 16px; width: 72px; height: 72px; border-width: 7px; }
  .hero::before { bottom: 20px; }
  .hero p { font-size: 16px; }
  .card { padding: 19px; }
  .rating-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .rating { padding: 8px 1px; }
  .rating-label { font-size: 10px; }
  .question-step { padding: 20px 10px; }
  .face { font-size: 27px; }
}

@media (max-width: 420px) {
  .brand { width: 100%; justify-content: center; }
  .top nav { width: 100%; justify-content: center; }
  .brand-logo { width: 182px; }
  .hero h1 { font-size: 32px; }
}

.notice { margin: 14px 0; padding: 13px 16px; border-left: 4px solid var(--gold-dark); background: #FFF9DB; color: var(--navy); line-height: 1.55; }
.privacy-notice { border-left-color: var(--teal-dark); background: #EAF4F1; }
.counter { margin: -8px 0 16px; color: var(--muted); text-align: right; font-size: 13px; }
.actions.compact { justify-content: flex-start; gap: 10px; }
.actions.compact form { margin: 0; }
.print-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.print-actions .btn { display: inline-flex; align-items: center; justify-content: center; }
.report-head { display: flex; align-items: center; gap: 28px; margin: 24px 0 32px; padding-bottom: 18px; border-bottom: 3px solid var(--teal-dark); }
.report-head img { width: min(230px, 30vw); height: auto; }
.report-head h1 { margin: 8px 0; }
.report-head p { color: var(--muted); }
.report-card { break-inside: avoid; }
.bi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.bar-track { height: 13px; overflow: hidden; background: #E8ECEA; border-radius: 8px; }
.bar-track span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-dark), var(--lime)); border-radius: inherit; }
.report-foot { margin-top: 35px; color: var(--muted); font-size: 12px; }
@media print {
  body { background: #fff; }
  .container { width: 100%; min-height: auto; margin: 0; padding: 0; }
  .card { box-shadow: none; border-color: #ccd4d1; }
  .no-print, .print-actions, .top, body > footer { display: none !important; }
  .report-head { margin-top: 0; }
  .bi-grid { grid-template-columns: repeat(2, 1fr); }
  a { color: inherit; }
}

.btn.danger { background: var(--red); color: #fff; }
.delete-form { margin-top: 16px; }
.open-answer { min-width: 320px; white-space: pre-wrap; }

.rating-na .rating-label { font-size: 13px; line-height: 1.35; }

.choice-list { display: grid; gap: 10px; margin: 22px 0; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.choice-list legend { padding: 0 8px; color: var(--navy); font-weight: 750; }
.choice-list label { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.choice-list input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--teal-dark); }

.question-card { padding: 0; overflow: hidden; }
.question-summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; list-style: none; cursor: pointer; }
.question-summary::-webkit-details-marker { display: none; }
.question-summary > span { min-width: 0; }
.question-summary strong { display: block; margin-top: 7px; color: var(--navy); font-size: 17px; line-height: 1.4; }
.question-card[open] .question-summary { border-bottom: 1px solid var(--line); background: #FAFCFB; }
.question-editor { padding: 0 24px 24px; }
.drag-handle { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--blue); background: #fff; cursor: grab; font-size: 19px; touch-action: none; }
.drag-handle:active { cursor: grabbing; }
.question-card.is-dragging { opacity: .45; }
.question-card.is-drop-target { outline: 2px dashed var(--teal-dark); outline-offset: 3px; }
.danger-zone { border-color: #E8C5C2; }
@media (max-width: 700px) {
  .question-summary { padding: 16px; gap: 8px; }
  .question-summary strong { font-size: 15px; }
  .question-editor { padding: 0 16px 16px; }
}
