/* ==========================================================================
   Six35 DAIR — shared design system
   Used identically across IMdiagnostic and IMguide 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;
}

.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;
}

.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;
}

/* ---------- Progress bar ---------- */

.progress-wrap {
  margin-bottom: 26px;
}

.progress-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* ---------- Question / options ---------- */

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

.question-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 22px;
  line-height: 1.35;
}

.option-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  background: #fff;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.option-btn:hover {
  border-color: var(--gold-1);
  background: #FFFBEF;
}

.option-btn.selected {
  border-color: var(--navy);
  background: #EFF5F9;
  font-weight: 600;
}

/* ---------- 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"] {
  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 input[type="text"]:focus,
.field input[type="email"]:focus {
  outline: none;
  border-color: var(--navy);
}

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

.field.has-error input {
  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;
}

/* ---------- Result screen ---------- */

.result-band {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.result-band.high {
  background: #E4F3EA;
  color: var(--success);
}

.result-band.mid {
  background: #FDF3DC;
  color: #8A6414;
}

.result-band.low {
  background: #FBE8E7;
  color: var(--error);
}

.result-score {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.result-summary {
  font-size: 16px;
  margin-bottom: 26px;
}

/* ---------- Guide content cards ---------- */

.area-card {
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold-1);
  border-radius: var(--radius);
  padding: 20px 20px;
  margin-bottom: 18px;
  background: #fff;
}

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

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

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

.area-card__callout {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FFFBEF;
  border: 1px solid #F0E1B4;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: #6B5416;
}

.area-card__callout strong {
  color: #8A6414;
}

.bottom-cta {
  text-align: center;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.bottom-cta h2 {
  margin-bottom: 18px;
}

/* ---------- 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;
  }
}
