:root {
  /* LDHR brand palette (pulled from the live site's actual CSS custom
     properties, not the unused Elementor global-colors preset) */
  --green: #17828B;
  --whiter-green: #459BA2;
  --light-green: #17828b4d;
  --grey: #4f4f4f;
  --grey-v1: #404040;
  --grey-v2: #333738;
  --light-grey: #4e4f50;
  --grey-v3: #e8e8e8;
  --light-black: #3b3b3b;
  --light-black-v2: #fafafa;
  --mine-shaft: #272727;
  --silver-chalice: #a9a9a9;
  --red: #ce2c30;
  --orange: #f23d3d;
  --light-red: #ff66663b;
  --white: #fff;
  /* Not a brand token - the kit has no amber, and the two reds above
     are too close to read as distinct "warn" vs "bad" tiers. */
  --amber: #e8a33d;

  --brand: var(--green);
  --brand-dark: var(--whiter-green);
  --ink: var(--mine-shaft);
  --muted: var(--light-grey);
  --border: var(--grey-v3);
  --bg: var(--light-black-v2);
  --good: var(--green);
  --warn: var(--amber);
  --bad: var(--red);
  --radius: 12px;
  --font: "Raleway", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--grey);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.app-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

.app-header {
  padding: 20px 0 8px;
  text-align: left;
}

.logo {
  width: 287px;
  height: 132px;
  display: block;
}

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  color: var(--ink);
}

.screen { display: none; }
.screen.active { display: block; }
.screen [tabindex="-1"]:focus { outline: none; } /* headings focused on screen change */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
}

.intro-card h1 { font-size: 26px; margin-top: 0; }
.lede { color: var(--muted); font-size: 16px; line-height: 1.5; }
.intro-points { color: var(--muted); line-height: 1.7; }

.btn {
  display: inline-block;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:disabled { background: var(--grey-v3); color: var(--silver-chalice); cursor: not-allowed; }
.btn-secondary { background: var(--grey-v3); color: var(--ink); }
.btn-outline { background: transparent; border: 2px solid var(--green); color: var(--green); font-weight: 600; }
.btn-outline:hover { background: var(--light-green); }
.btn-large { padding: 14px 24px; font-size: 16px; }

.progress-wrap { margin-bottom: 16px; }
.progress-track {
  height: 8px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.2s ease;
}
.progress-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.question-card h2 { font-size: 20px; line-height: 1.4; margin-top: 0; }

/* A new question slides in, so an answer tap that advances is visible. */
.question-enter { animation: question-enter 0.25s ease-out; }
@keyframes question-enter {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .question-enter { animation: none; }
}

.answer-options {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.answer-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-size: 15px;
  background: #fff;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
/* Touch screens keep :hover on the tapped spot, which is where the next
   question's button renders, so it looked pre-selected. */
@media (hover: hover) {
  .answer-option:hover { border-color: var(--green); background: rgba(23, 130, 139, 0.06); }
}
.answer-option.selected {
  border-color: var(--green);
  background: rgba(23, 130, 139, 0.12);
  font-weight: 600;
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.results-header { text-align: center; }
.overall-score {
  font-size: 56px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin: 8px 0;
}
.overall-status { font-size: 18px; font-weight: 600; margin: 0; }
.overall-action { color: var(--muted); margin-top: 4px; }
.submission-id { margin: 16px 0; color: var(--ink); }
.submission-id strong { font-size: 1.15em; letter-spacing: 0.08em; font-family: ui-monospace, Menlo, Consolas, monospace; }
.submission-id-hint { color: var(--muted); font-size: 0.9em; }

.category-list { display: grid; gap: 16px; }
.category-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}
.category-item-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}
.category-name { font-weight: 700; color: var(--ink); }
.category-score { font-weight: 700; }
.category-bar-track {
  height: 8px;
  background: var(--grey-v3);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}
.category-bar-fill { height: 100%; border-radius: 8px; }
.category-content { color: var(--muted); font-size: 14px; margin: 0; }

.score-good { color: var(--good); }
.score-warn { color: var(--warn); }
.score-bad { color: var(--bad); }
.bar-good { background: var(--good); }
.bar-warn { background: var(--warn); }
.bar-bad { background: var(--bad); }

.cta-card { background: rgba(23, 130, 139, 0.06); border-color: rgba(23, 130, 139, 0.35); }
.calendly-cta-primary { margin-top: 20px; padding-top: 0; border-top: none; text-align: center; }

.calendly-embed { width: 100%; height: 700px; margin-top: 20px; }
.calendly-embed iframe { display: block; border: 0; }
/* widget.js adds a loading spinner styled by Calendly's own CSS, which isn't loaded. */
.calendly-embed .calendly-spinner { display: none; }
.app-footer { margin: 8px 0 0; text-align: center; color: var(--muted); font-size: 0.85em; }
.app-footer a { color: inherit; }

.calendly-fallback { margin-top: 12px; text-align: center; color: var(--muted); font-size: 0.9em; }
.calendly-fallback a { color: inherit; }

.calendly-cta {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .app-shell { max-width: 100%; }
  .card { border: none; padding: 0; margin-bottom: 24px; }
  #screen-results { display: block !important; }
  #screen-intro, #screen-survey, #screen-loading { display: none !important; }
}

/* Honeypot field: off-screen rather than display:none, which some bots skip. */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-error {
  margin: 1rem 0 0;
  color: var(--red);
  font-weight: 600;
}
