/* Golf Self Assessment questionnaire. Everything is scoped under .thrq so it won't disturb your theme. */
.thrq {
  --thrq-blue: #0070C0;
  --thrq-green: #00B050;
  --thrq-navy: #1F3864;
  --thrq-ink: #1d2327;
  --thrq-muted: #5b6470;
  --thrq-line: #d7dde4;
  --thrq-soft: #f3f7fb;
  --thrq-error: #c62828;
  max-width: 760px;
  margin: 0 auto;
  color: var(--thrq-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid var(--thrq-line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 90px;
}
.thrq *, .thrq *::before, .thrq *::after { box-sizing: border-box; }
.thrq p { margin: 0 0 12px; }
.thrq h2, .thrq h3 { margin: 0 0 8px; color: var(--thrq-navy); font-family: inherit; line-height: 1.25; text-transform: none; letter-spacing: 0; }
.thrq h2 { font-size: 22px; }
.thrq h3 { font-size: 16px; margin-top: 16px; }
.thrq fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

.thrq-head { background: var(--thrq-blue); color: #fff; padding: 16px 20px; text-align: center; }
.thrq-brand { font-weight: 700; font-size: 20px; }
.thrq-accent { color: #fff; border-bottom: 3px solid var(--thrq-green); }
.thrq-brand sup { font-size: 10px; }
.thrq-sub { font-size: 14px; opacity: .95; margin-top: 4px; }

.thrq-progress { height: 6px; background: #e3e9f0; }
.thrq-bar { height: 100%; background: var(--thrq-green); transition: width .3s ease; }

.thrq-body { padding: 20px; }
.thrq-step { color: var(--thrq-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.thrq-intro { color: var(--thrq-muted); }

/* Scale legend */
.thrq-legend { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 6px; }
.thrq-legend li { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 0; }
.thrq-num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--thrq-soft); color: var(--thrq-navy); font-weight: 700; font-size: 14px; flex: none; }
.thrq-legend-wrap { margin: 4px 0 14px; }
.thrq-legend-wrap summary { cursor: pointer; color: var(--thrq-blue); font-size: 14px; margin-bottom: 8px; }

/* Fields */
.thrq-field { margin: 16px 0; }
.thrq-field > label, .thrq-field > legend { display: block; font-weight: 600; margin-bottom: 6px; color: var(--thrq-navy); }
.thrq-opt { font-weight: 400; color: var(--thrq-muted); }
.thrq input[type=text], .thrq input[type=email] {
  width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid var(--thrq-line); border-radius: 6px; background: #fff; color: var(--thrq-ink);
}
.thrq input[type=text]:focus, .thrq input[type=email]:focus { outline: 2px solid var(--thrq-blue); outline-offset: 1px; border-color: var(--thrq-blue); }
.thrq-versions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.thrq-versions legend { grid-column: 1 / -1; }
.thrq-card { position: relative; display: block; cursor: pointer; }
.thrq-card input { position: absolute; opacity: 0; }
.thrq-card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 2px solid var(--thrq-line); border-radius: 8px; height: 100%; }
.thrq-card-body span { font-size: 14px; color: var(--thrq-muted); }
.thrq-card input:checked + .thrq-card-body { border-color: var(--thrq-green); background: #effaf3; }
.thrq-card input:focus-visible + .thrq-card-body { outline: 2px solid var(--thrq-blue); outline-offset: 2px; }
.thrq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Items */
.thrq-items { display: grid; gap: 12px; }
.thrq-item { border: 1px solid var(--thrq-line) !important; border-radius: 8px; padding: 12px 14px 14px !important; }
.thrq-item.thrq-missing { border-color: var(--thrq-error) !important; background: #fff6f6; }
.thrq-item legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; }
.thrq-item-name { font-weight: 700; color: var(--thrq-navy); font-size: 16px; }
.thrq-desc { clear: both; font-size: 14px; color: var(--thrq-muted); margin: 0 0 10px; }
.thrq-options { clear: both; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.thrq-opt-btn { position: relative; cursor: pointer; margin: 0; }
.thrq-opt-btn input { position: absolute; opacity: 0; }
.thrq-opt-face { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border: 1px solid var(--thrq-line);
  border-radius: 6px; text-align: center; height: 100%; transition: background .15s, border-color .15s; }
.thrq-opt-text { display: flex; flex-direction: column; gap: 2px; }
.thrq-opt-label { font-size: 12px; line-height: 1.2; font-weight: 600; color: var(--thrq-navy); }
.thrq-opt-hint { font-size: 11px; line-height: 1.2; color: var(--thrq-muted); }
.thrq-legend-hint { color: var(--thrq-muted); }
.thrq-opt-btn input:checked + .thrq-opt-face .thrq-opt-hint { color: #e6f0fa; }
.thrq-opt-btn:hover .thrq-opt-face { border-color: var(--thrq-blue); }
.thrq-opt-btn input:checked + .thrq-opt-face { background: var(--thrq-blue); border-color: var(--thrq-blue); }
.thrq-opt-btn input:checked + .thrq-opt-face .thrq-num { background: #fff; color: var(--thrq-blue); }
.thrq-opt-btn input:checked + .thrq-opt-face .thrq-opt-label { color: #fff; }
.thrq-opt-btn input:focus-visible + .thrq-opt-face { outline: 2px solid var(--thrq-navy); outline-offset: 2px; }

/* Navigation */
.thrq-error { color: var(--thrq-error); font-size: 14px; min-height: 1px; margin: 12px 0 0; }
.thrq-error:empty { margin: 0; }
.thrq-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.thrq-btn { appearance: none; border: 2px solid var(--thrq-green); background: var(--thrq-green); color: #fff; font: inherit; font-weight: 700;
  padding: 10px 24px; border-radius: 6px; cursor: pointer; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.thrq-btn:hover { filter: brightness(.95); }
.thrq-btn:disabled { opacity: .6; cursor: default; }
.thrq-btn.thrq-ghost { background: #fff; color: var(--thrq-navy); border-color: var(--thrq-line); }

/* Results */
.thrq-results { display: grid; gap: 10px; margin: 16px 0; }
.thrq-res-row { display: grid; grid-template-columns: 190px 1fr 36px; align-items: center; gap: 10px; font-size: 14px; }
.thrq-res-track { height: 12px; background: #e3e9f0; border-radius: 6px; overflow: hidden; }
.thrq-res-fill { height: 100%; background: var(--thrq-green); border-radius: 6px; }
.thrq-res-val { font-weight: 700; text-align: right; color: var(--thrq-navy); }
.thrq-overall { font-size: 16px; }

@media (max-width: 560px) {
  .thrq-body { padding: 16px; }
  .thrq-versions { grid-template-columns: 1fr; }
  .thrq-options { grid-template-columns: 1fr; gap: 6px; }
  .thrq-opt-face { flex-direction: row; justify-content: flex-start; gap: 10px; padding: 8px 10px; }
  .thrq-opt-label { font-size: 14px; }
  .thrq-opt-hint { font-size: 13px; }
  .thrq-opt-text { align-items: flex-start; text-align: left; }
  .thrq-res-row { grid-template-columns: 1fr 36px; }
  .thrq-res-label { grid-column: 1 / -1; margin-bottom: -6px; }
}
