/* Course registration forms. Colours come from brand-refinements.css. Mobile first. */
.pf-reg { background: #f6f8f9; padding: 28px 0 56px; color: var(--pf-ink); }
.pf-reg__wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.pf-reg *, .pf-reg *::before, .pf-reg *::after { box-sizing: border-box; }

.pf-reg__intro { margin-bottom: 20px; }
.pf-reg__eyebrow { display: block; margin-bottom: 6px; color: var(--pf-green); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pf-reg__intro h1 { margin: 0; color: var(--pf-ink); font-family: inherit; font-size: 24px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }

.pf-reg__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }

/* Course summary */
.pf-reg__summary { background: var(--pf-green); color: #fff; border-radius: var(--pf-radius); padding: 20px; }
.pf-reg__summary h2 { margin: 0 0 12px; color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; }
.pf-reg__summary dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.pf-reg__summary dl > div[hidden] { display: none; }
.pf-reg__summary dt { color: rgba(255, 255, 255, .78); font-size: 13px; font-weight: 400; }
.pf-reg__summary dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.pf-reg__fee dd { color: var(--pf-gold); font-size: 18px; font-weight: 700; }

/* Form card */
.pf-reg__form { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); box-shadow: var(--pf-card-shadow); padding: 20px; min-width: 0; }
.pf-reg__form fieldset { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.pf-reg__form legend { width: 100%; float: none; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--pf-green-tint); color: var(--pf-green); font-size: 17px; font-weight: 600; }
.pf-reg__form legend small { color: var(--pf-muted); font-size: 13px; font-weight: 400; }
.pf-reg__fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.pf-field { min-width: 0; }
.pf-field label { display: block; margin: 0 0 6px; color: var(--pf-ink); font-size: 14px; font-weight: 500; line-height: 1.3; }
.pf-field label span { color: #c0392b; }
.pf-field small { display: block; margin-top: 5px; color: var(--pf-muted); font-size: 13px; line-height: 1.4; }

/* 16px text stops iPhones zooming the page when a field is tapped */
.pf-reg .pf-field input,
.pf-reg .pf-field select,
.pf-reg .pf-field textarea {
  display: block; width: 100%; height: 48px; margin: 0; padding: 10px 14px;
  background-color: #fff; border: 1px solid #c9d2d8; border-radius: 10px;
  color: var(--pf-ink); font: inherit; font-size: 16px; line-height: 1.4; box-shadow: none;
}
.pf-reg .pf-field select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2303594E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.pf-reg .pf-field textarea { height: auto; min-height: 112px; resize: vertical; }
.pf-reg .pf-field input::placeholder,
.pf-reg .pf-field textarea::placeholder { color: #7b8690; opacity: 1; }
.pf-reg .pf-field input:focus,
.pf-reg .pf-field select:focus,
.pf-reg .pf-field textarea:focus { outline: none; border-color: var(--pf-green); box-shadow: 0 0 0 3px rgba(3, 89, 78, .16); }

.pf-reg__checks { display: grid; gap: 10px; }
.pf-check { display: flex; align-items: center; gap: 12px; min-height: 48px; margin: 0; padding: 10px 14px; border: 1px solid #c9d2d8; border-radius: 10px; cursor: pointer; font-size: 15px; }
.pf-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--pf-green); opacity: 1; position: static; visibility: visible; }
.pf-check span { padding: 0; }
.pf-check span::before, .pf-check span::after { display: none; }
.pf-check:has(input:checked) { border-color: var(--pf-green); background: var(--pf-green-tint); }

.pf-reg__alert { margin-bottom: 20px; padding: 12px 14px; background: #fdecea; border: 1px solid #f5c6c1; border-radius: 10px; color: #8e2a1f; font-size: 15px; }
.pf-reg__hint { margin: 10px 0 0; color: #8e2a1f; font-size: 14px; }

.pf-reg__submit button {
  display: block; width: 100%; min-height: 52px; margin-top: 14px; padding: 12px 24px;
  background: var(--pf-green); border: 0; border-radius: 10px; color: #fff; cursor: pointer;
  font-size: 16px; font-weight: 600; transition: background .2s ease;
}
.pf-reg__submit button:hover { background: var(--pf-green-dark); }
.pf-reg__submit button:focus-visible { outline: 3px solid var(--pf-gold); outline-offset: 2px; }
.pf-reg__submit button:disabled { background: #6f8f89; cursor: wait; }

.pf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (min-width: 640px) {
  .pf-reg__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-reg__checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-reg__form { padding: 28px; }
}
@media (min-width: 992px) {
  .pf-reg { padding: 44px 0 72px; }
  .pf-reg__intro h1 { font-size: 30px; }
  .pf-reg__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
  .pf-reg__summary { grid-column: 2; grid-row: 1; position: sticky; top: 110px; }
  .pf-reg__summary dl { grid-template-columns: 1fr; }
  .pf-reg__form { grid-column: 1; grid-row: 1; }
  .pf-reg__submit button { width: auto; min-width: 260px; }
}
.pf-reg__privacy { margin: 12px 0 0; color: var(--pf-muted); font-size: 13px; }
.pf-reg__privacy a { color: var(--pf-green); text-decoration: underline; }
