/* Registration form. Inherits the site's light palette from ../style.css and only
   adds what the form itself needs. */
.reg-page{padding:30px 0 60px; max-width:900px}
.reg-head{margin-bottom:22px}
.reg-head h1{font-size:clamp(26px,3.4vw,36px); font-weight:800}
.reg-lede{margin:12px 0 0; color:var(--ink-2); max-width:60ch}

.reg-block{padding:24px 26px; margin-bottom:18px}
.reg-block h2{font-size:17px; font-weight:800; margin-bottom:14px}

/* competition choice */
.comp-picker{display:grid; gap:10px}
.comp-option{display:flex; align-items:center; gap:12px; border:1.5px solid var(--line); border-radius:12px;
  padding:14px 16px; cursor:pointer; background:var(--bg-2)}
.comp-option:hover{border-color:var(--navy)}
.comp-option.on{border-color:var(--navy); background:#F4F8FF; box-shadow:var(--shadow)}
.comp-option input{accent-color:var(--navy); width:18px; height:18px}
.comp-option strong{font-size:15px; font-weight:800}
.comp-option small{display:block; color:var(--ink-3); font-size:12px; margin-top:2px}

.rules-box{margin-top:14px; background:var(--bg-3); border-radius:12px; padding:14px 18px}
.rules-box h3{font-size:12px; font-weight:800; letter-spacing:.6px; text-transform:uppercase; color:var(--gold-ink); margin-bottom:8px}
.rules-box ul{margin:0; padding-left:18px}
.rules-box li{font-size:13.5px; color:var(--ink-2); margin-bottom:4px}

/* fields */
.field-grid{display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:14px}
label{display:block; font-size:13px; font-weight:700; color:var(--ink-2); margin-bottom:6px}
.req{color:var(--red)}
input,select,textarea{width:100%; padding:10px 12px; border:1.5px solid var(--line); border-radius:9px;
  font-size:15px; font-family:inherit; background:#fff; color:var(--ink); margin-top:5px}
input:focus,select:focus,textarea:focus{outline:none; border-color:var(--navy)}
textarea{resize:vertical}

/* squad table */
.squad-head{display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap}
.hint{font-size:13px; color:var(--ink-2); margin:0 0 14px}
.tally{display:flex; gap:8px; flex-wrap:wrap}
.chip{font-size:12px; font-weight:800; padding:5px 11px; border-radius:999px; background:var(--bg-3); color:var(--ink-2)}
.chip.good{background:#E9F5EA; color:var(--green)}
.chip.bad{background:#FDECEC; color:var(--red)}
.squad-table-wrap{overflow-x:auto; margin-bottom:12px}
.squad-table{width:100%; border-collapse:collapse; min-width:480px}
/* columns the competition's rules did not ask for are not shown at all */
.squad-table.hide-cid .col-cid,
.squad-table.hide-dob .col-dob,
.squad-table.hide-pos .col-pos,
.squad-table.hide-num .col-num,
.squad-table.hide-pro .col-pro{display:none}
.squad-table th{font-size:11px; text-transform:uppercase; letter-spacing:.5px; color:var(--ink-3);
  text-align:left; padding:6px 8px; font-weight:800}
.squad-table td{padding:4px 6px; vertical-align:middle}
.squad-table td.n{width:28px; color:var(--ink-3); font-size:12.5px; font-weight:700; text-align:right}
.squad-table input,.squad-table select{margin-top:0; padding:8px 10px; font-size:14px}
.squad-table .pro-col{text-align:center; width:44px}
.squad-table td.pro{text-align:center}
.squad-table td.pro input{width:17px; height:17px; accent-color:var(--gold)}
.row-del{background:none; border:0; color:var(--ink-3); font-size:17px; cursor:pointer; padding:4px 8px; line-height:1}
.row-del:hover{color:var(--red)}
tr.under-age input[type=date]{border-color:var(--gold); background:#FFF8EE}
tr.is-pro td.pro{background:#FFF4E3; border-radius:6px}
.btn-sm{padding:9px 16px; font-size:13.5px}
/* site-wide .btn-ghost is white-on-navy — on this light page it vanished into
   the background and read as a disabled button */
.reg-page .btn-ghost{border-color:var(--navy); color:var(--navy); background:#fff}
.reg-page .btn-ghost:hover{background:var(--navy); color:#fff}
/* Add player at the squad maximum: visibly off, and hover must not re-ink it */
.reg-page .btn-ghost[disabled]{opacity:.4; cursor:not-allowed; border-color:var(--ink-3); color:var(--ink-3)}
.reg-page .btn-ghost[disabled]:hover{background:#fff; color:var(--ink-3)}

/* verdict */
.verdict{margin-bottom:16px}
.verdict-item{display:flex; gap:9px; align-items:flex-start; font-size:14px; margin-bottom:7px}
.verdict-item.err{color:var(--red)}
.verdict-item.warn{color:var(--gold-ink)}
.verdict-item.ok{color:var(--green); font-weight:700}
.verdict-item span:first-child{font-weight:800}
#submit[disabled]{opacity:.45; cursor:not-allowed}

.reg-closed,.reg-done{padding:34px; text-align:center}
.reg-closed h2,.reg-done h2{font-size:22px; margin-bottom:10px}
.reg-closed p,.reg-done p{color:var(--ink-2); max-width:56ch; margin:0 auto 18px}

@media (max-width:700px){
  .field-grid{grid-template-columns:1fr}
  .reg-block{padding:20px}
}
