/* Local fonts and a text-only layout keep the form fast on mobile connections. */
:root {
  color-scheme: light;
  --ink: #183e33;
  --body: #283e36;
  --muted: #586a60;
  --paper: #f7f5ec;
  --surface: #fffef9;
  --line: #d8dfd3;
  --accent: #d8e9a2;
  --error: #a82b23;
  --radius: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
input,
textarea,
button {
  border-radius: var(--radius);
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1200px, calc(100% - 80px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  left: 20px;
  top: -70px;
  background: var(--ink);
  color: white;
  padding: 14px;
  z-index: 3;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  max-width: 660px;
  text-decoration: none;
  font-weight: 650;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
.chamber-logo {
  display: block;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  object-fit: contain;
}
.chamber-name {
  display: block;
  min-width: 0;
  max-width: 480px;
}
.header-note {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  flex-shrink: 0;
  text-align: right;
}
.page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 84px;
  padding-block: 70px 80px;
}
.introduction {
  padding-top: 16px;
  align-self: start;
}
.eyebrow {
  margin: 0 0 23px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6b8247;
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(42px, 4.2vw, 59px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 24px;
}
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.025em;
  font-size: 30px;
  line-height: 1.18;
  margin: 0 0 12px;
  color: var(--ink);
}
.intro-copy {
  font-size: 17px;
  line-height: 1.7;
  max-width: 365px;
  margin: 0;
}
.register-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 46px;
  margin-top: 20px;
  padding: 12px 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.register-link:hover {
  background: #245540;
}
.register-link > span {
  color: var(--accent);
}
.organiser-byline {
  margin: 24px 0 0;
  max-width: 365px;
  font-size: 12px;
  line-height: 1.7;
  font-weight: 600;
}
.intro-footnote {
  font-size: 12px;
  line-height: 1.7;
  max-width: 330px;
  color: var(--muted);
  margin-top: 22px;
}
/* Keep eligibility and the deadline visible before applicants share details. */
.clinic-details {
  max-width: 365px;
  margin: 22px 0 0;
  font-size: 12px;
  line-height: 1.65;
}
.clinic-details > div + div {
  margin-top: 13px;
}
.clinic-details dt {
  font-weight: 650;
  color: var(--ink);
}
.clinic-details dd {
  margin: 3px 0 0;
  color: var(--muted);
}
.decorative-lines {
  display: flex;
  gap: 8px;
  margin-top: 39px;
}
.decorative-lines span {
  height: 4px;
  width: 36px;
  background: var(--ink);
}
.decorative-lines span:nth-child(2) {
  background: #84946d;
}
.decorative-lines span:nth-child(3) {
  background: #c1cba9;
}
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 38px;
  border-radius: 9px;
  min-width: 0;
  align-self: start;
  scroll-margin-top: 20px;
}
.form-heading {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}
.form-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.form-heading > p:not(.eyebrow) {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}
/* Draft storage is opt-in; these controls remain hidden without the client script. */
.draft-tools {
  margin-top: 18px;
}
.draft-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-bottom: 0;
  cursor: pointer;
}
.draft-toggle input {
  width: 17px;
  height: 17px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--ink);
}
.draft-status {
  margin: 8px 0 0;
}
.form-section {
  padding-block: 28px 7px;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 25px;
}
.section-number {
  font-size: 11px;
  letter-spacing: 0.04em;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
}
h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.field {
  margin: 0 0 23px;
  min-width: 0;
  padding: 0;
  border: 0;
}
label,
legend {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  display: block;
  margin-bottom: 7px;
}
legend {
  padding: 0;
  width: 100%;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field-hint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 8px;
}
.stage-definitions {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.stage-definitions > div + div {
  margin-top: 8px;
}
.stage-definitions dt {
  display: inline;
  font-weight: 600;
}
.stage-definitions dd {
  display: inline;
  margin: 0;
}
.field > input,
.field > textarea {
  width: 100%;
  background: white;
  color: var(--body);
  border: 1px solid #bdc9bc;
  padding: 11px 12px;
  font-size: 16px;
  line-height: 1.4;
  min-height: 45px;
  box-shadow: 0 1px 1px #183e3303;
}
.field > textarea {
  resize: vertical;
  min-height: 94px;
}
.field > input:hover,
.field > textarea:hover {
  border-color: #8e9f8d;
}
input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid #719366;
  outline-offset: 3px;
}
.field > input:focus,
.field > textarea:focus {
  border-color: var(--ink);
}
.registration-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.choice {
  display: flex;
  gap: 9px;
  align-items: center;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  cursor: pointer;
  min-height: 45px;
  background: #fff;
}
.choice:has(input:checked) {
  background: #eef3e5;
  border-color: #759365;
}
.choice input,
.consent-choice input {
  margin: 0;
  accent-color: var(--ink);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.answer-options {
  display: grid;
  grid-template-columns: 1fr 1fr 1.45fr;
  gap: 8px;
  margin-top: 11px;
}
.answer-options .choice {
  padding-inline: 10px;
}
.submit-section {
  padding-top: 25px;
}
.privacy-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.consent-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 11px;
  line-height: 1.7;
  cursor: pointer;
  margin-bottom: 22px;
}
.consent-choice input {
  margin-top: 2px;
}
.primary-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fffef9;
  width: 100%;
  padding: 15px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  min-height: 53px;
}
.primary-button > span:last-child {
  color: var(--accent);
  font-size: 21px;
  line-height: 1;
}
.primary-button:hover {
  background: #245540;
}
.submission-note {
  font-size: 10px;
  text-align: center;
  line-height: 1.65;
  color: var(--muted);
  max-width: 320px;
  margin: 13px auto 0;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.message {
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  margin: 20px 0;
  border-radius: var(--radius);
}
.error-message {
  background: #fff1eb;
  border: 1px solid #ecc5b6;
  color: #84271f;
}
.error-message p {
  margin: 0;
}
.error-message ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.error-message a {
  text-underline-offset: 2px;
}
.field-error {
  font-size: 11px;
  line-height: 1.6;
  margin: 7px 0 0;
  color: var(--error);
}
[aria-invalid="true"] {
  border-color: var(--error) !important;
}
.success-panel {
  padding-block: 20px;
  outline: none;
}
.success-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-size: 25px;
  margin-bottom: 26px;
}
.success-panel .eyebrow {
  margin-bottom: 13px;
}
.success-panel > p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.75;
}
.reference-line {
  background: #eef3e5;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: var(--radius);
  margin-top: 23px;
}
.reference-line strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.03em;
}
.success-panel .field-hint {
  font-size: 12px !important;
  color: var(--muted);
  margin-top: 18px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 22px 30px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}
.site-footer > span:first-child {
  font-weight: 650;
  color: var(--ink);
}
/* The organiser view shares the same visual language and never saves credentials. */
.admin-main {
  padding-block: 55px 80px;
}
.admin-main h1 {
  font-size: 44px;
  margin-bottom: 16px;
}
.admin-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 580px;
  margin-bottom: 30px;
}
.admin-login {
  max-width: 480px;
  background: var(--surface);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.admin-login h2 {
  font-size: 25px;
  margin-bottom: 22px;
}
.admin-login .primary-button {
  margin-top: 10px;
}
.admin-login .field {
  margin-bottom: 18px;
}
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-total {
  font-size: 14px;
  margin: 0;
}
.admin-total strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  color: var(--ink);
  font-weight: 400;
  margin-right: 8px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.secondary-button {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #a9b7a5;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 600;
  min-height: 43px;
}
.secondary-button:hover {
  background: #eef3e5;
}
.admin-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  line-height: 1.6;
}
th,
td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 16px;
  min-width: 150px;
}
th {
  background: #eaf0e2;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}
tbody tr:last-child td {
  border-bottom: 0;
}
td strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}
td p {
  margin: 5px 0 0;
}
.table-muted {
  color: var(--muted);
  font-size: 11px;
}
.table-note {
  white-space: pre-wrap;
}
.empty-state {
  padding: 40px 25px;
  text-align: center;
  color: var(--muted);
}
.admin-status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0;
}
.admin-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 18px;
}
.admin-security-note {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
}
@media (max-width: 1000px) {
  .shell {
    width: calc(100% - 48px);
  }
  .page-grid {
    gap: 40px;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    padding-top: 50px;
  }
  .form-panel {
    padding: 28px;
  }
  h1 {
    font-size: 44px;
  }
  .answer-options {
    grid-template-columns: 1fr 1fr;
  }
  .answer-options > .choice:last-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 740px) {
  .shell {
    width: calc(100% - 36px);
  }
  .site-header {
    padding-block: 20px;
    gap: 18px;
  }
  .header-note {
    font-size: 10px;
    letter-spacing: 0.08em;
    max-width: 88px;
    line-height: 1.6;
  }
  .chamber-logo {
    width: 60px;
    height: 60px;
  }
  .wordmark {
    flex: 1;
    font-size: 14px;
    gap: 10px;
    line-height: 1.4;
  }
  .page-grid {
    display: block;
    padding-block: 35px 45px;
  }
  .introduction {
    position: static;
    padding-top: 0;
    margin-bottom: 30px;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 16px;
  }
  h1 {
    font-size: 46px;
    line-height: 1.08;
    margin-bottom: 18px;
  }
  h1 br {
    display: none;
  }
  .intro-copy {
    font-size: 15px;
    line-height: 1.7;
    max-width: 100%;
  }
  .organiser-byline {
    margin-top: 20px;
    max-width: none;
    font-size: 11px;
  }
  .intro-footnote {
    font-size: 11px;
    max-width: none;
    margin-top: 15px;
  }
  .decorative-lines {
    display: none;
  }
  .form-panel {
    padding: 25px 21px;
    border-radius: 8px;
  }
  .form-heading h2 {
    font-size: 28px;
  }
  .form-heading {
    padding-bottom: 22px;
  }
  .form-section {
    padding-top: 24px;
  }
  .section-heading {
    margin-bottom: 22px;
  }
  .answer-options {
    grid-template-columns: 1fr 1fr 1.45fr;
  }
  .answer-options > .choice:last-child {
    grid-column: auto;
  }
  .site-footer {
    font-size: 10px;
    padding-block: 18px 24px;
    gap: 25px;
    line-height: 1.7;
  }
  .site-footer > span:last-child {
    text-align: right;
  }
  .admin-main {
    padding-block: 35px 50px;
  }
  .admin-main h1 {
    font-size: 38px;
  }
  .admin-login {
    padding: 24px;
  }
  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .admin-actions {
    width: 100%;
  }
  .admin-actions button {
    flex: 1;
  }
  th,
  td {
    padding: 13px;
  }
  .admin-intro {
    font-size: 13px;
  }
}
@media (max-width: 380px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .site-header .wordmark {
    flex-basis: 100%;
  }
  .site-header .header-note {
    max-width: none;
    margin-left: auto;
  }
  .shell {
    width: calc(100% - 28px);
  }
  h1 {
    font-size: 41px;
  }
  .form-panel {
    padding: 22px 17px;
  }
  .answer-options {
    grid-template-columns: 1fr 1fr;
  }
  .answer-options > .choice:last-child {
    grid-column: 1/-1;
  }
  .header-note {
    max-width: 90px;
    text-align: right;
  }
  .registration-options {
    gap: 7px;
  }
  .choice {
    font-size: 11px;
    padding: 10px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  .choice,
  input,
  textarea {
    transition:
      background-color 0.15s,
      border-color 0.15s;
  }
  .success-panel {
    animation: appear 0.2s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Long applications retain the lightweight typography and single reading order. */
select {
  font: inherit;
  border-radius: var(--radius);
  touch-action: manipulation;
}
.field > select {
  width: 100%;
  min-height: 46px;
  background: white;
  color: var(--body);
  border: 1px solid #bdc9bc;
  padding: 11px 12px;
  font-size: 16px;
  line-height: 1.4;
}
.field > select:hover {
  border-color: #8e9f8d;
}
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #719366;
  outline-offset: 3px;
}
.field > select:focus {
  border-color: var(--ink);
}
.form-section {
  scroll-margin-top: 24px;
}
.section-intro {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin: -10px 0 24px;
}
.application-outline {
  margin-top: 28px;
  max-width: 330px;
}
.application-outline ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.application-outline a {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 12px;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.application-outline a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.application-outline a > span {
  color: var(--muted);
  width: 13px;
}
.conditional-fields {
  border-left: 2px solid var(--line);
  padding-left: 16px;
  margin-bottom: 8px;
}
.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.answer-options.two-options {
  grid-template-columns: 1fr 1fr;
}
.answer-options.two-options > .choice:last-child {
  grid-column: auto;
}
.answer-options.long-options {
  grid-template-columns: 1fr 1fr;
}
.answer-options.long-options > .choice:last-child {
  grid-column: 1 / -1;
}
.choice > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.application-details {
  margin-top: 12px;
  min-width: 220px;
  max-width: 330px;
}
.application-details > summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 600;
  min-height: 44px;
  padding-block: 11px;
}
.application-detail-list {
  margin: 0;
}
.application-detail-list > div {
  padding-block: 5px;
  border-top: 1px solid var(--line);
}
.application-detail-list dt {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.application-detail-list dd {
  margin: 4px 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
@media (max-width: 740px) {
  .application-outline {
    display: none;
  }
  .section-intro {
    font-size: 11px;
  }
  .conditional-fields {
    padding-left: 12px;
  }
}
@media (max-width: 380px) {
  .field-pair {
    gap: 10px;
  }
}

/* Membership has two answers; keep both choices on the same row. */
.answer-options.two-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.answer-options.two-options > .choice:last-child {
  grid-column: auto;
}

/* Put the selection and payment notice at the final submission decision. */
.submission-follow-up {
  background: #eef3e5;
  border: 1px solid var(--line);
}

/* Public enquiry contacts use the details printed on the clinic flyer. */
.enquiries {
  padding-block: 28px 36px;
  border-top: 1px solid var(--line);
}
.enquiries h2 {
  font-size: 24px;
  margin-bottom: 20px;
}
.enquiries-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  font-size: 13px;
  line-height: 1.7;
}
.enquiries-contacts address {
  min-width: 0;
  font-style: normal;
}
.enquiries-contacts strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.enquiries-contacts a {
  display: block;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  padding-block: 4px;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}
@media (max-width: 740px) {
  .enquiries-contacts {
    grid-template-columns: 1fr;
  }
}
