/* The workshop feedback page. Builds on styles.css. */

.page-bar {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-bar-inner {
  width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.page-back {
  font-size: 15px;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
}
.page-back:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.fb {
  width: var(--shell);
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0 96px;
}
.fb h1 {
  font-size: clamp(2.3rem, 6vw, 3.3rem);
  font-weight: 400;
  line-height: 1.08;
  margin: 12px 0 18px;
}
.fb-lede {
  font-size: 1.08rem;
  color: #2c3a31;
}
.fb-hint {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #4d5f52;
}

.fb-form {
  margin-top: 36px;
}
.fb-class {
  margin-bottom: 8px;
}

.fb-q {
  border: 0;
  margin: 0;
  padding: 30px 0 32px;
  border-top: 1px solid var(--line);
  min-inline-size: 0;
}
.fb-q > legend,
.fb-q .fb-label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 30px 0 0;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--forest);
  letter-spacing: 0;
  text-transform: none;
}
/* A legend sits on the fieldset's border; push it down to match the labels. */
.fb-q > legend {
  float: left;
  width: 100%;
  padding-top: 0;
}
.fb-q > legend + * {
  clear: both;
}
.fb-q.field {
  gap: 0;
  padding-top: 0;
}
.fb-num {
  flex: none;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  min-width: 1.2em;
}
.fb-sub {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #4d5f52;
}

/* Question 1: one row of four buttons per area. */
.fb-ratings {
  display: grid;
  gap: 18px;
}
.fb-rating {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.fb-rating legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--ink);
}
.fb-scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.fb-scale label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--forest);
  background: #fff;
  border: 1px solid rgba(28, 58, 44, 0.2);
  border-radius: 2px;
  cursor: pointer;
}
.fb-scale input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.fb-scale label:hover {
  border-color: var(--gold-soft);
}
.fb-scale label:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.fb-scale label:has(input:checked) {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--paper);
}

/* Question 3: topics in their groups. */
.fb-topics {
  display: grid;
  gap: 22px;
}
.fb-group h3 {
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4d5f52;
}
.fb-group-list,
.fb-choices {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.fb-choices--two {
  grid-template-columns: 1fr 1fr;
}
.fb .interest {
  min-height: 48px;
  align-items: center;
  font-size: 1rem;
}
.fb .interest input {
  margin: 0;
}
.fb .interest-text b {
  font-weight: 400;
  color: var(--ink);
}
.fb .interest-text em {
  display: block;
  margin-top: 2px;
}
.fb-other {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}
.fb-contact {
  margin-top: 18px;
  padding: 18px;
  background: var(--paper-card);
  border: 1px solid var(--line);
}
.fb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fb-review h2 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}
.fb-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
  font-size: 0.98rem;
  line-height: 1.45;
  cursor: pointer;
}
.fb-consent input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  flex: none;
  accent-color: var(--forest);
}
.fb-name {
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-bottom: 24px;
}
.fb .field label {
  color: #4d5f52;
}
.fb .form-error {
  margin-bottom: 14px;
}
.fb-privacy {
  margin-top: 14px;
  font-size: 0.9rem;
  color: #4d5f52;
  text-align: center;
}
.fb-privacy a {
  color: var(--forest);
}

.fb-thanks {
  margin-top: 36px;
  padding: 34px 30px;
  background: var(--forest);
  color: rgba(248, 243, 231, 0.9);
  outline: none;
}
.fb-thanks h2 {
  color: var(--paper);
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.fb-sign {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--gold-soft);
}
.fb-thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.fb-thanks .btn-primary {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--forest);
}
.fb-thanks .btn-primary:hover {
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}
.fb-thanks .btn-quiet {
  color: var(--paper);
}

/* While Greg edits, the topic list editor takes the place of the tick boxes. */
.site-copy-editing .fb-scale input {
  pointer-events: none;
}
.site-copy-editing .fb-contact[hidden],
.site-copy-editing .fb-consent[hidden],
.site-copy-editing .fb-class[hidden],
.site-copy-editing .fb-thanks[hidden] {
  display: block !important;
}
.site-copy-editing .fb-consent[hidden] {
  display: flex !important;
}

@media (max-width: 640px) {
  .fb {
    padding: 36px 0 72px;
  }
  .fb-scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .fb-row,
  .fb-choices--two {
    grid-template-columns: 1fr;
  }
}

/* Text-sized gold and sage on paper need the darker shades to reach 4.5:1. */
.fb-num,
.fb .interest-text em {
  color: #7a5c24;
}
.fb .eyebrow {
  color: #4d5f52;
}
