/* ==========================================================================
   Six35 DAIR — shared design system
   Used identically across IMdiagnostic, IMguide and IMworksheets sites.
   ========================================================================== */

:root {
  --navy: #154F75;
  --navy-dark: #0F3A56;
  --gold-1: #CFA43C;
  --gold-2: #E9CE7B;
  --bg: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #5B6670;
  --border: #E3E8EC;
  --border-strong: #C7D0D7;
  --error: #B3261E;
  --success: #1E7A46;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 3px rgba(21, 79, 117, 0.08);
  --shadow-md: 0 8px 24px rgba(21, 79, 117, 0.10);
  --max-width: 640px;
  --gold-gradient: linear-gradient(100deg, var(--gold-1) 0%, var(--gold-2) 100%);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

a {
  color: var(--navy);
}

/* ---------- Layout ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  padding: 18px 20px;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
}

main {
  display: block;
  min-height: calc(100vh - 80px);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 48px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- Screens ---------- */

.screen {
  display: none;
  animation: fadeIn 0.35s ease;
}

.screen.active {
  display: block;
}

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

/* ---------- Typography ---------- */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 14px;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 10px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  margin: 22px 0 8px;
}

.sub-headline {
  font-size: 17px;
  color: var(--text);
  margin: 0 0 18px;
}

.intro-line {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.body-text {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 14px;
}

.trust-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}

.consent-line {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 14px;
  line-height: 1.5;
}

.consent-line a {
  color: var(--navy);
  text-decoration: underline;
}

/* ---------- Benefit ticks ---------- */

.tick-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tick-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
}

.tick-list .tick-mark {
  flex-shrink: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 22px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--navy-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-text {
  background: none;
  color: var(--navy);
  text-decoration: underline;
  font-weight: 600;
  width: auto;
  padding: 10px 0;
}

.btn-back {
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  width: auto;
  padding: 8px 0;
  font-size: 14px;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.actions-center {
  text-align: center;
}

/* ---------- Form fields ---------- */

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.field input[type="text"]:focus,
.field input[type="email"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.field-helper {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.field-error {
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--error);
}

.field.has-error .field-error {
  display: block;
}

.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--navy);
}

.checkbox-row label {
  font-size: 14px;
  color: var(--text);
}

.form-status {
  font-size: 14px;
  margin-top: 12px;
  display: none;
}

.form-status.visible {
  display: block;
}

.form-status.error {
  color: var(--error);
}

/* honeypot field must stay visually hidden but accessible-hidden too */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* ---------- Step indicator ---------- */

.step-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.step-question {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.35;
}

.worksheet-step {
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.worksheet-step:last-of-type {
  border-bottom: none;
}

.footer-guidance {
  font-size: 14px;
  color: var(--text-muted);
  background: #F5F8FA;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 26px 0;
  line-height: 1.55;
}

.cross-links {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.cross-links p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.cross-links .actions {
  gap: 10px;
}

/* ---------- Cascade diagram ---------- */

.cascade-diagram {
  margin: 8px 0 26px;
}

.cascade-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.cascade-diagram--mobile {
  display: none;
}

@media (max-width: 599px) {
  .cascade-diagram--desktop {
    display: none;
  }
  .cascade-diagram--mobile {
    display: block;
  }
}

/* ---------- Worksheets index cards ---------- */

.worksheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.worksheet-card {
  display: block;
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-1);
  border-radius: var(--radius);
  padding: 22px 22px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

.worksheet-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold-1);
}

.worksheet-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 8px;
}

.worksheet-card__desc {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 12px;
}

.worksheet-card__cta {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

/* ---------- Output / document view ---------- */

.output-doc {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 22px;
}

.output-doc__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.output-field {
  margin-bottom: 20px;
}

.output-field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-1);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px;
}

.output-field__value {
  font-size: 15px;
  color: var(--text);
  white-space: pre-wrap;
  margin: 0;
}

/* ---------- Utility ---------- */

.text-center {
  text-align: center;
}

.mt-24 {
  margin-top: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 600px) {
  h1 {
    font-size: 34px;
  }

  .container {
    padding: 48px 24px 80px;
  }
}

/* ---------- Print ---------- */

@media print {
  .site-header,
  .site-footer,
  .no-print {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .output-doc {
    border: none;
    padding: 0;
  }

  body {
    color: #000;
  }
}
