/* Public join, renew, donate and contact forms (/f/<club>/<form>), on their own or inside an iframe on a club's website.
   app.css gives the fields and buttons; this lays out the page in the club's color (--brand, --on-brand set inline). */
.pf { background: var(--bg); }
.pf .btn.primary { color: var(--on-brand); }
.pf .btn.primary:hover { background: var(--brand); filter: brightness(.94); }
.pf input:focus, .pf select:focus, .pf textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.pf-wrap { width: min(640px, 100%); margin: 0 auto; padding: 28px 16px 20px; display: grid; gap: 16px; }
.pf-club { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 20px; min-width: 0; overflow-wrap: anywhere; }
.pf-club img { max-height: 56px; max-width: 160px; width: auto; }
.pf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 16px; min-width: 0; overflow-wrap: anywhere; }
.pf-card h1 { font-size: 26px; }
.pf-intro { white-space: normal; }
.pf-form { display: grid; gap: 18px; min-width: 0; }
.pf-group { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.pf-group legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.pf-opt { font-weight: 400; color: var(--muted); }
.pf-choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; min-width: 0; }
.pf-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.pf-choice input, .pf-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.pf-choice > span { display: grid; gap: 2px; min-width: 0; }
.pf-price { font-weight: 600; }
.pf-desc { color: var(--muted); font-size: 14px; }
.pf-check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.pf-amounts { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-amount { position: relative; }
.pf-amount input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pf-amount span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 600; background: var(--surface); }
.pf-amount input:checked + span { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.pf-amount input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.pf-other-amount { max-width: 240px; }
.pf-err { color: var(--bad); font-weight: 600; font-size: 14px; }
.pf [aria-invalid="true"] { border-color: var(--bad); }
.pf-submit { display: grid; gap: 8px; justify-items: start; }
.pf-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pf-foot { text-align: center; color: var(--muted); font-size: 13px; }
.pf-foot a { color: inherit; }
/* Inside an iframe: no page around the card, so it sits flush in the club's page */
.pf-embed { background: transparent; }
.pf-embed .pf-wrap { padding: 2px; width: 100%; max-width: none; }
@media (max-width: 480px) { .pf-card { padding: 18px 16px; } .pf-wrap { padding: 16px 12px; } .pf-card h1 { font-size: 23px; } }
/* The form's own look (form_design(), set in the form builder; on a club's website, form-embed.js may override it).
   Colors arrive as --brand, --ink, --muted, --bg, --surface, --line; fonts as --font-body and --font-display. */
.pf { color: var(--ink); font-family: var(--font-body); }
.pf-card { border-radius: var(--pf-radius, 16px); }
.pf input:not([type=radio]):not([type=checkbox]), .pf select, .pf textarea { border-radius: var(--pf-field-radius, 10px); background: var(--surface); color: var(--ink); border-color: var(--line); }
.pf .btn, .pf-amount span { border-radius: var(--pf-field-radius, 10px); }
.pf-choice { border-radius: var(--pf-field-radius, 12px); }
.pf .btn.primary { background: var(--brand); border-color: var(--brand); }
.pf-btn-pill .btn, .pf-btn-pill .pf-amount span { border-radius: 999px; }
.pf-btn-outline .btn.primary { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.pf-btn-outline .btn.primary:hover { background: var(--brand); color: var(--on-brand); filter: none; }
/* Flat: no box around the form, so it reads as part of the club's own page */
.pf-layout-flat .pf-card { background: transparent; border: 0; padding: 0; box-shadow: none; }
.pf-layout-flat.pf-embed .pf-wrap { padding: 0; }
