/* ============================================================
   sections/sbc-form.css  —  "Planning to Attend" form
   Sits on the site's own design tokens (theme.css), styled to
   match the Contact form. Scoped under .sbc-attend.
   ============================================================ */
.sbc-attend { background: #ffffff; }

.sbc-attend__inner { max-width: 680px; margin-inline: auto; text-align: center; }
.sbc-attend__title {
  font-family: var(--font-display); font-weight: 400; line-height: 1.1;
  font-size: var(--fs-h2); color: var(--brown-deep);
  font-variation-settings: "opsz" 96, "SOFT" 50; margin-bottom: 1rem;
}
.sbc-attend__intro { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.sbc-attend .req { color: var(--orange-red); }

/* ---- Form shell ------------------------------------------- */
.attend-form {
  max-width: 640px; margin: clamp(2rem, 5vw, 3rem) auto 0;
  display: flex; flex-direction: column; gap: 1.6rem; text-align: left;
}

/* Name row: Title (narrow) + First + Last */
.af-row--name { display: grid; grid-template-columns: minmax(96px, 0.6fr) 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .af-row--name { grid-template-columns: 1fr; } }

.af-field { display: flex; flex-direction: column; gap: 0.4rem; }
.af-field > label,
.af-group > legend {
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}

.attend-form input[type="text"],
.attend-form input[type="email"],
.attend-form select,
.attend-form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.7rem 0.85rem; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.attend-form input:focus,
.attend-form select:focus,
.attend-form textarea:focus {
  outline: none; border-color: var(--maroon); box-shadow: 0 0 0 3px rgba(122, 31, 43, 0.12);
}
.attend-form textarea { resize: vertical; min-height: 7rem; }
.attend-form input:disabled { background: var(--bg-soft); color: var(--ink-soft); cursor: not-allowed; opacity: 0.7; }

/* Checkbox / radio groups */
.af-group { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.8rem; }
.af-group > legend { padding: 0; margin-bottom: 0.2rem; }
.af-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem 1rem; }
.af-check, .af-radio {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.96rem; color: var(--ink-soft); cursor: pointer;
}
.af-check input, .af-radio input { width: 1.1rem; height: 1.1rem; accent-color: var(--maroon); flex-shrink: 0; }

/* Single standalone checkbox (e.g., first-class) */
.af-single { font-size: 0.98rem; }

/* "Other" specify box */
.af-other { margin-top: 0.2rem; }
.af-other input { max-width: 340px; }

/* At-least-one-class error */
.af-error { color: var(--maroon-deep); font-size: 0.85rem; font-weight: 600; display: none; }
.af-error.show { display: block; }

/* Honeypot */
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.af-submit { margin-top: 0.5rem; }
@media (max-width: 520px) {
  .af-submit .btn { width: 100%; justify-content: center; }
}
