/* Drawing Requirements Checker — extends css/style.css.
   Uses the site's existing tokens, fonts and button/form classes
   (.btn-primary, .read-more-btn, .section-label, .section-title, .contact,
   .form-*, .legal-notice). Only checker-specific pieces are defined here. */

[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.checker {
  padding: 140px 0 100px;
  min-height: 70vh;
  border-bottom: 1px solid var(--line);
}

#checker-root { scroll-margin-top: 110px; max-width: 820px; }

.checker-panel { max-width: 820px; }
.checker-panel > .section-title { margin-bottom: 24px; }

.checker-lead {
  font-size: 16px;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
}

.checker-fine {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  opacity: 0.7;
  margin-top: 24px;
  max-width: 620px;
}

.checker-flag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 40px;
}

/* Buttons: reuse .btn-primary / .read-more-btn; adapt for <button> elements */
button.btn-primary { border: 0; cursor: pointer; }
.btn-primary[aria-disabled="true"] { background: var(--line-strong); cursor: not-allowed; }
.btn-primary[aria-disabled="true"]:hover { gap: 10px; background: var(--line-strong); }

:is(.btn-primary, .read-more-btn, .checker-restart, .checker-change, .form-submit):focus-visible,
:is(.form-input, .form-textarea):focus-visible,
.checker a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Progress */
.checker-progress { margin-bottom: 40px; }
.checker-progress-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.checker-progress-bar { height: 2px; background: var(--line); }
.checker-progress-bar span { display: block; height: 100%; background: var(--accent-light); transition: width 0.3s; }

/* Question */
.checker-fieldset { border: 0; min-width: 0; }
.checker-question {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.checker-question:focus { outline: none; }
.checker-hint { font-size: 14px; line-height: 1.6; opacity: 0.7; margin-bottom: 8px; max-width: 620px; }

/* Option cards (native radios, visually hidden) */
.checker-options { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px 0; }
@media (min-width: 640px) { .checker-options { grid-template-columns: 1fr 1fr; } }

.checker-option { display: block; position: relative; cursor: pointer; }
.checker-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.checker-option-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 72px;
  padding: 20px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  transition: background 0.3s, border-color 0.2s;
}
.checker-option-body::after {
  content: '';
  position: absolute; bottom: -1px; left: -1px; right: -1px; height: 2px;
  background: var(--accent-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.checker-option:hover .checker-option-body { background: var(--paper-warm); }
.checker-option input:checked + .checker-option-body { border-color: var(--accent-light); background: var(--paper-warm); }
.checker-option input:checked + .checker-option-body::after { transform: scaleX(1); }
.checker-option input:focus-visible + .checker-option-body { outline: 2px solid var(--amber); outline-offset: 3px; }

.checker-option-title { font-family: var(--serif); font-size: 20px; line-height: 1.2; }
.checker-option-desc { font-size: 13px; line-height: 1.55; opacity: 0.7; }

.checker-error, .form-error {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 8px;
}
.checker-error { color: var(--amber); font-weight: 400; }
.form-error { color: var(--amber-light); }

.checker-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.checker-restart {
  background: none; border: 0; cursor: pointer; margin-top: 32px; padding: 4px 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); opacity: 0.6; text-decoration: underline;
}
.checker-restart:hover { opacity: 1; }

/* Results */
.checker-h3 {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 400;
  margin: 56px 0 12px;
}
.checker-list { list-style: none; border-top: 1px solid var(--line); margin: 0 0 24px; }
.checker-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.checker-list h4 { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 6px; }
.checker-list p { font-size: 14px; line-height: 1.65; max-width: 620px; opacity: 0.8; }
.checker-list p.checker-note { margin-top: 6px; color: var(--accent-light); opacity: 1; font-weight: 400; }
.checker .legal-notice { margin: 32px 0; max-width: 620px; }

.checker-answers { border-top: 1px solid var(--line); margin-bottom: 40px; }
.checker-answers > div {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.checker-answers dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.7; padding-top: 3px;
}
.checker-answers dd { display: flex; justify-content: space-between; gap: 12px; }
.checker-change {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-light); text-decoration: underline; white-space: nowrap;
}
.checker-change:hover { color: var(--amber); }

.checker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }

/* Enquiry form (inside the existing .contact section) */
.checker-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-link { color: rgba(245,242,236,0.45); text-decoration: underline; }
.contact .form-row .form-group { margin-bottom: 0; }
.contact .form-row { margin-bottom: 24px; }
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] { border-color: var(--amber-light); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }
.checker-success-title { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.contact [data-success]:focus { outline: none; }
.form-note { color: rgba(245,242,236,0.5); }

/* Homepage entry-point banner */
.checker-cta {
  margin-top: 64px;
  padding: 40px;
  border: 1px solid var(--line);
  background: var(--white);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.checker-cta h3 { font-family: var(--serif); font-size: 28px; font-weight: 400; margin-bottom: 8px; }
.checker-cta p { font-size: 14px; line-height: 1.65; max-width: 520px; opacity: 0.8; }
.checker-cta .btn-primary { flex-shrink: 0; }

@media (max-width: 640px) {
  .checker { padding: 112px 0 72px; }
  .checker-answers > div { grid-template-columns: 1fr; gap: 4px; }
  .checker-nav .btn-primary { padding: 15px 22px; }
  .checker-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .checker-option-body, .checker-option-body::after, .checker-progress-bar span { transition: none; }
}

/* Print: results only */
@media print {
  body::before, nav, .mobile-menu, footer, #enquiry, .checker-actions, .checker-change,
  .checker-restart, .ticker { display: none !important; }
  .checker { padding: 0; min-height: 0; border: 0; }
  .container { padding: 0; }
  .checker-list li { break-inside: avoid; }
}

.checker-lead a, .checker-fine a, .checker .checker-panel p a { color: var(--accent-light); }
