/* /waverate/artists/apply: the early-access application form. Uses site.css tokens and form parts
   (.panel, .field-group, .label, .field, .hint, .field-error, .status, .state) only. */

.apply-wrap { max-width: 820px; padding-bottom: clamp(56px, 8vw, 104px); }
.apply-head h1 { max-width: 14ch; }
.apply-head .fine { margin-top: 16px; }
.apply-noscript { margin-bottom: 24px; }

.apply-fields { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 28px; }
.apply-fields[disabled] { opacity: .6; }
.apply-section { display: grid; gap: 18px; padding-top: 4px; }
.apply-section + .apply-section { border-top: 1px solid var(--line); padding-top: 28px; }
.apply-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .apply-row { grid-template-columns: minmax(0, 1fr); } }

.apply-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.apply-group legend { padding: 0; margin-bottom: 2px; }
.label.sub { font-weight: 500; color: var(--muted); }

/* Checkboxes and radios: a 44px row with the native control (keyboard and screen readers as is) */
.tick { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border-radius: var(--r-inner); border: 1px solid var(--line); background: rgba(253, 251, 247, .03); cursor: pointer; font-size: .95rem; line-height: 1.45; transition: border-color .15s, background-color .15s; }
.tick:hover { border-color: var(--line-strong); }
.tick input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--pink); }
.tick:has(input:checked) { border-color: rgba(214, 93, 177, .55); background: var(--pink-soft); }
.tick:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.tick:has(input:focus-visible) { outline: 2px solid var(--pink-hi); outline-offset: 2px; }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-row .tick { min-width: 120px; }
.choice-stack { display: grid; gap: 8px; }
.apply-group[aria-invalid="true"] .tick { border-color: rgba(255, 107, 107, .5); }

.apply-count { text-align: right; }
.apply-privacy { margin-top: 0; }

/* The honeypot: off screen for people, still in the form for bots */
.apply-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Cloudflare Turnstile: invisible unless Cloudflare asks the visitor to tick a box */
.apply-bot:not(:empty) { margin: 0 0 16px; }

.apply-errors { margin-bottom: 24px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 107, 107, .08); border: 1px solid rgba(255, 107, 107, .3); }
.apply-errors h2 { font-size: 1.1rem; margin-bottom: 8px; }
.apply-errors ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--muted); font-size: .94rem; }
.apply-errors a { color: var(--cream); }
.apply-errors:focus { outline: none; }

.apply-done { padding: 24px 8px; }
.apply-done p { max-width: 52ch; }
.apply-done:focus { outline: none; }
