/* The BGC AGM 2027 registration form (register/index.html).
   Looks like the 2026 Gravity Form on bgcevent.co.uk/page/ - navy bold labels
   with a red asterisk, plain bordered boxes, two columns on wide screens, the
   red Submit button - with the accessibility fixes IBC's form needed
   (Built sites/IBC Conference 2027, README sections 14-15):
     - box borders 3:1 against white (WCAG 1.4.11); the 2026 #dddedf was 1.3:1
     - a real 3px focus outline, which Windows High Contrast also keeps
     - 16px text in every box, so an iPhone does not zoom when one is tapped
     - tap targets at least 44px high
   Font sizes are in rem (the theme's root is 62.5%, so 1.6rem = 16px) so they follow the
   browser's text-size setting like the rest of the page (form tests 2026-10-14).
   Colours are the site's own: navy #273476 (--secondary), red #e30613 (--primary),
   text #3f4b53. Gotham comes from the page (300 Light, 500 Medium). */

.bgc-regform, .bgc-regdone {
  /* Long words ("member/associate", agm@thebgc.co.uk) wrap rather than spill when
     the text is made larger (200% text on a phone - form tests 2026-10-14). */
  overflow-wrap: anywhere;
  width: 100%;
  max-width: 1100px;
  margin-top: 3rem;
  font-family: "Gotham", Arial, sans-serif;
  color: #3f4b53;
}
.bgc-regform__req { margin: 0 0 1.5rem; font-size: 1.6rem; }
.bgc-req { color: #e30613; margin-left: 2px; }

.bgc-regform__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 2.4rem;
  row-gap: 1.6rem;
}
@media (min-width: 700px) {
  .bgc-regform__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgc-field--wide { grid-column: 1 / -1; }
}

.bgc-field { margin: 0; padding: 0; border: 0; min-width: 0; }
.bgc-field[hidden] { display: none; }
.bgc-field__label {
  display: block;
  margin: 0 0 .6rem;
  padding: 0;
  color: #273476;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.4;
}

.bgc-field input[type=text],
.bgc-field input[type=email],
.bgc-field input[type=tel],
.bgc-field input[type=password],
.bgc-field select,
.bgc-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #858b90; /* 3.5:1 on white */
  border-radius: 0;
  background: #fff;
  color: #1c2328;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.4;
}
.bgc-field textarea { min-height: 110px; resize: vertical; }
.bgc-field select { appearance: auto; }

/* #regform: the theme's "body.bricks-is-frontend.bricks-is-frontend :focus"
   ring otherwise wins on specificity (browser review 2026-10-13). */
#regform .bgc-field input:focus, #regform .bgc-field select:focus, #regform .bgc-field textarea:focus,
#regform .bgc-choice__opt input:focus {
  outline: 3px solid #273476;
  outline-offset: 2px;
}
/* Same specificity as the box rules above, and later, so the red border wins. */
.bgc-field input[aria-invalid="true"], .bgc-field select[aria-invalid="true"], .bgc-field textarea[aria-invalid="true"] {
  border-color: #e30613;
}
.bgc-field__err { margin: .45rem 0 0; color: #c00510; font-weight: 500; font-size: 1.5rem; line-height: 1.4; }
.bgc-field__err:empty { display: none; }

/* Radios and the tick box: native controls in the site red, the whole row is the label. */
.bgc-choice__opt {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  min-height: 44px;
  padding: .55rem 0;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1.4;
  color: #3f4b53;
}
.bgc-choice__opt input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #e30613;
}
.bgc-choice__opt a { color: #273476; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* The human check (Turnstile): takes no space unless Cloudflare shows its box. */
.bgc-regform__human { margin-top: 1.5rem; }
.bgc-regform__human:empty { display: none; }

/* Bot trap: off-screen, never display:none (some bots skip hidden fields). */
.bgc-regform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.bgc-regform__status {
  overflow-wrap: anywhere; /* the long info@ address, at 320px */
  margin: 1.5rem 0 0;
  padding: .9rem 1.1rem;
  background: #fde8ea;
  color: #8a0710;
  font-weight: 500;
  font-size: 1.6rem;
  line-height: 1.45;
}
.bgc-regform__status:empty { padding: 0; margin: 0; background: none; }
.bgc-regform__status a { color: inherit; text-decoration: underline; }

/* font-family: a <button> does not inherit the page font on its own. */
.bgc-regform__submit {
  margin-top: 1.8rem;
  min-height: 46px;
  padding: 10px 28px;
  border: 0;
  border-radius: 0;
  background: #e30613;
  color: #fff;
  font-family: inherit;
  font-size: 1.8rem;
  font-weight: 300;
  cursor: pointer;
}
.bgc-regform__submit:hover { background: #c00510; }
#regform .bgc-regform__submit:focus-visible { outline: 3px solid #273476; outline-offset: 3px; }
.bgc-regform__submit[aria-disabled="true"] { opacity: .7; cursor: progress; }

.bgc-regform__other { margin: 1.6rem 0 0; font-size: 1.8rem; color: #000; } /* page text, not form small print: matches the copy above it (black 18px), 2026-10-16 */
.bgc-regform__other a { color: #e30613; } /* the site's button red: 4.9:1; #ff0000 was 4.0:1 */

/* The Register page's text block (and the result pages'): info@bettingandgamingcouncil.com
   cannot break, and pushed a 320px screen (400% zoom) sideways. */
#brxe-yllztr { overflow-wrap: anywhere; }
/* ...and the hero heading's "REGISTRATION." (40px) is 323px wide: wider than the
   text column below about 375px. Breaking or hyphenating the word read as a typo
   in the client's heading (review 2026-10-13), so it is SCALED to the column
   instead: 12% of the column (screen less 2 x 24px padding) fits the word with
   room to spare, and from 381px up this is the original 40px. Narrow screens only. */
/* #brx-content: the theme sets this heading's size by its id, in CSS loaded after this file. */
@media (max-width: 400px) { #brx-content #brxe-ruvaaq { font-size: min(40px, calc((100vw - 48px) * .12)); } }

.bgc-regdone h3 { color: #273476; margin: 0 0 .6rem; }
.bgc-regdone h3:focus { outline: none; }
.bgc-regdone p { margin: 0; font-size: 1.8rem; }

@media (forced-colors: active) {
  #regform .bgc-field input:focus, #regform .bgc-field select:focus, #regform .bgc-field textarea:focus { outline-color: Highlight; }
}

/* Printing: browsers drop background colours, which left Submit white on white
   (final review 2026-10-14). */
@media print {
  #regform .bgc-regform__submit { color: #e30613; background: none; border: 1px solid #e30613; }
}

/* A field's hint (the password rule, 2026-10-23): read with the field (aria-describedby). */
.bgc-field__hint { margin: .45rem 0 0; color: #3f4b53; font-size: 1.4rem; line-height: 1.45; }
.bgc-pwshow[hidden] { display: none; }
.bgc-pwshow { margin-top: .4rem; }

/* The password's own section (Billy, 2026-10-23): a lightly tinted rounded panel with a
   heading and a line saying what the password is for; the two boxes side by side on
   wide screens. The legend floats so it sits INSIDE the panel (a fieldset legend
   otherwise straddles the border). */
.bgc-pwset {
  box-sizing: border-box;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #dfe2ee;
  border-radius: 16px;
  background: #f5f6fb;
}
.bgc-pwset__legend {
  float: left;
  width: 100%;
  margin: 0 0 .4rem;
  padding: 0;
  color: #0a0a0a;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.3;
}
.bgc-pwset__intro {
  clear: both;
  margin: 0 0 1.6rem;
  color: #3f4b53;
  font-size: 1.6rem;
  line-height: 1.5;
}
.bgc-pwset__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 2.4rem;
  row-gap: 1.6rem;
}
@media (min-width: 700px) {
  .bgc-pwset__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* The hidden username for password managers (review 2026-10-26): off-screen, never display:none
   (managers skip hidden fields). */
.bgc-regform__pmuser { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
