/* Polish Champs – Zapisy na zawody
   Kolory jak na stronie fundacji. Rozmiary w px, żeby wygląd nie zależał od motywu. */
.pcz {
  --pcz-navy: #0e313f;
  --pcz-navy-2: #174050;
  --pcz-red: #D72323;
  --pcz-red-dark: #b51c1c;
  --pcz-gray: #757575;
  --pcz-light: #f0f0f0;
  --pcz-border: #cfd6d9;
  --pcz-text: #1d2a30;
  color: var(--pcz-text);
  font-size: 17px;
  line-height: 1.6;
  margin: 8px 0 40px;
}
.pcz *, .pcz *::before, .pcz *::after { box-sizing: border-box; }
.pcz p { font-size: 17px; margin: 0 0 12px; }

/* Informacje o zawodach */
.pcz-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  background: var(--pcz-navy);
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}
.pcz-info__item { padding: 18px 20px; border-right: 1px solid rgba(255,255,255,.15); }
.pcz-info__item:last-child { border-right: 0; }
.pcz-info__label { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fcacac; margin-bottom: 4px; }
.pcz-info__value { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; }
@media (max-width: 767px) {
  .pcz-info { grid-template-columns: 1fr 1fr; }
  .pcz-info__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .pcz-info__item:first-child { grid-column: 1 / -1; }
  .pcz-info__value { font-size: 16px; }
}
.pcz-field[hidden] { display: none; }

.pcz-files { margin: 0 0 20px; }

/* Zakładki (jak na stronie Warszawskiej Ligi Padla) */
.pcz-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; border-bottom: 3px solid var(--pcz-navy-2); padding-bottom: 12px; }
.pcz-tab {
  appearance: none; border: 0; cursor: pointer;
  background: var(--pcz-gray); color: #fff;
  font: inherit; font-size: 17px; font-weight: 700;
  padding: 10px 20px; border-radius: 5px;
}
.pcz-tab:hover { text-decoration: underline; }
.pcz-tab.is-active { background: var(--pcz-navy-2); }
.pcz-tab:focus-visible { outline: 3px solid var(--pcz-red); outline-offset: 2px; }
.pcz-panel { padding-top: 24px; }
.pcz-panel[hidden] { display: none; }

/* Formularz */
.pcz-form { max-width: 860px; }
.pcz-required-note { font-size: 15px !important; color: #555; }
.pcz-req { color: var(--pcz-red); font-weight: 700; }
.pcz-group { border: 1px solid var(--pcz-border); border-radius: 6px; padding: 18px 20px 6px; margin: 0 0 20px; background: #fff; }
.pcz-group[hidden] { display: none; }
.pcz-group legend {
  float: none; width: auto; margin: 0; padding: 4px 12px;
  background: var(--pcz-navy-2); color: #fff; border-radius: 4px;
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.pcz-group--uwagi { border: 0; padding: 0; background: none; }
.pcz-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 12px; }
@media (max-width: 767px) { .pcz-grid { grid-template-columns: 1fr; } }
.pcz-field { margin-bottom: 16px; min-width: 0; }
.pcz-field--wide { grid-column: 1 / -1; }
.pcz-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.pcz input[type=text], .pcz input[type=email], .pcz input[type=tel], .pcz input[type=date],
.pcz input[type=number], .pcz select, .pcz textarea {
  display: block; width: 100%; max-width: none; margin: 0;
  font: inherit; font-size: 16px; color: var(--pcz-text);
  padding: 11px 12px; min-height: 46px;
  border: 1px solid #9aa7ad; border-radius: 5px; background: #fff;
}
.pcz textarea { min-height: 90px; }
.pcz input:focus, .pcz select:focus, .pcz textarea:focus { outline: none; border-color: var(--pcz-navy-2); box-shadow: 0 0 0 3px rgba(23,64,80,.25); }
.pcz-radios { display: flex; gap: 24px; min-height: 46px; align-items: center; }
.pcz .pcz-radio { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; cursor: pointer; }
.pcz-radio input, .pcz-check input { width: 20px; height: 20px; accent-color: var(--pcz-navy-2); margin: 0; flex: 0 0 auto; }
.pcz-help { display: block; font-size: 14px; color: #5b6a70; margin-top: 4px; }
.pcz-group .pcz-help:first-of-type:not(.pcz-field .pcz-help) { margin: 10px 0 0; }
.pcz-error { display: block; font-size: 14px; color: var(--pcz-red-dark); font-weight: 700; margin-top: 4px; }
.pcz-field.has-error input, .pcz-field.has-error select, .pcz-field.has-error textarea { border-color: var(--pcz-red); background: #fff7f7; }

.pcz-consents { padding-bottom: 12px; }
.pcz-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; font-size: 15px; line-height: 1.5; }
.pcz-check[hidden] { display: none; }
.pcz-check input { margin-top: 2px; }
.pcz .pcz-check label { cursor: pointer; }
.pcz-check.has-error label { color: var(--pcz-red-dark); }
.pcz-check a, .pcz-alert a { color: var(--pcz-red); }

.pcz-summary { background: var(--pcz-light); border-left: 5px solid var(--pcz-red); padding: 14px 18px; margin: 0 0 20px; font-size: 17px; border-radius: 0 5px 5px 0; }
.pcz-summary strong { font-size: 20px; }

.pcz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Przyciski */
.pcz-btn { display: inline-block; font: inherit; font-weight: 700; font-size: 17px; padding: 13px 34px; border-radius: 5px; cursor: pointer; text-decoration: none !important; text-align: center; border: 2px solid transparent; }
.pcz-btn--primary { background: var(--pcz-red); color: #fff !important; border-color: var(--pcz-red); }
.pcz-btn--primary:hover { background: var(--pcz-red-dark); border-color: var(--pcz-red-dark); }
.pcz-btn--outline { background: #fff; color: var(--pcz-navy-2) !important; border-color: var(--pcz-navy-2); padding: 9px 22px; font-size: 16px; }
.pcz-btn--outline:hover { background: var(--pcz-navy-2); color: #fff !important; }
@media (max-width: 767px) { .pcz-form .pcz-btn--primary { width: 100%; } }

/* Komunikaty */
.pcz-alert { border-radius: 6px; padding: 16px 20px; margin: 0 0 20px; font-size: 16px; }
.pcz-alert ul { margin: 8px 0 0 20px; padding: 0; }
.pcz-alert--error { background: #fdecea; border: 1px solid #f3b8b3; color: #6b1212; }
.pcz-alert--error a { color: #6b1212; }
.pcz-alert--success { background: #e9f6ee; border: 1px solid #a9d8b8; color: #133d22; }
.pcz-alert--info { background: var(--pcz-light); border: 1px solid var(--pcz-border); }
.pcz-alert:focus { outline: none; }
.pcz .pcz-h3 { font-size: 22px; font-weight: 700; margin: 4px 0 12px; }
.pcz-note { background: var(--pcz-light); padding: 14px 18px; border-radius: 5px; margin: 0 0 20px; }
.pcz-note p:last-child { margin-bottom: 0; }
.pcz-bank { background: #fff; border: 1px dashed var(--pcz-navy-2); padding: 12px 16px; border-radius: 5px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; margin: 0 0 12px; }

/* Tabele */
.pcz .pcz-filter { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; font-size: 16px; }
.pcz-filter select { width: auto; min-width: 220px; }
.pcz-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.pcz-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pcz-table th { background: var(--pcz-navy-2); color: #fff; text-align: left; padding: 10px 12px; font-weight: 700; white-space: nowrap; }
.pcz-table td { padding: 10px 12px; border-bottom: 1px solid #e1e6e8; vertical-align: top; }
.pcz-table tbody tr:nth-child(even) { background: #f7f9fa; }
.pcz-table tbody tr:hover { background: #eef3f5; }
.pcz-table--list td:first-child { width: 50px; color: #5b6a70; }
.pcz-paid { color: #1b6b35; font-weight: 700; white-space: nowrap; }
.pcz-unpaid { color: #8a6d00; white-space: nowrap; }
.pcz-empty { font-style: italic; color: #5b6a70; }
@media (max-width: 600px) {
  .pcz-table--list th:nth-child(3), .pcz-table--list td:nth-child(3) { display: none; }
  .pcz-table { font-size: 15px; }
}

/* Kilka zawodów na jednej stronie */
.pcz-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 20px; }
.pcz-event { background: var(--pcz-navy); color: #fff; border-radius: 6px; padding: 18px 20px 20px; display: flex; flex-direction: column; }
.pcz .pcz-event__title { color: #fff; font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 12px; }
.pcz-event__meta { margin: 0 0 16px; display: grid; gap: 8px; flex: 1; }
.pcz-event__meta div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.pcz-event__meta dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #fcacac; font-weight: 400; padding-top: 2px; }
.pcz-event__meta dd { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.4; }
.pcz-btn--light { background: transparent; color: #fff !important; border-color: #fff; padding: 7px 18px; font-size: 15px; align-self: flex-start; }
.pcz-btn--light:hover { background: #fff; color: var(--pcz-navy) !important; }

/* Wybór zawodów w formularzu */
.pcz-help--lead { font-size: 16px; color: var(--pcz-text); margin: 12px 0 4px; }
.pcz-help--warn { color: #8a5a00; font-weight: 700; }
.pcz-choices { display: grid; gap: 12px; margin: 12px 0 16px; }
.pcz-choice { border: 2px solid var(--pcz-border); border-radius: 6px; padding: 14px 16px; background: #fff; transition: border-color .15s, background .15s; }
.pcz-choice.is-checked { border-color: var(--pcz-navy-2); background: #f5f9fa; }
.pcz-choice.is-closed { opacity: .6; }
.pcz .pcz-choice__head { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 400; }
.pcz-choice__head input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pcz-navy-2); flex: 0 0 auto; }
.pcz-choice__head strong { display: block; font-size: 17px; }
.pcz-choice__head small { display: block; font-size: 14px; color: #5b6a70; }
.pcz-choice__body { margin: 14px 0 0; }
.pcz-choice__body[hidden] { display: none; }
.pcz:not(.pcz--multi) .pcz-choice { border: 0; padding: 0; background: none; }
.pcz:not(.pcz--multi) .pcz-choice__body { margin: 0; }
.pcz-group--zawody .pcz-choices { max-width: 640px; }
.pcz:not(.pcz--multi) .pcz-group--zawody .pcz-choices { margin-top: 12px; }
.pcz-success-list { margin: 0 0 12px 20px; padding: 0; }
.pcz-success-list li { margin-bottom: 4px; }

/* Zgoda rodzica do pobrania */
.pcz-event__files { display: flex; flex-wrap: wrap; gap: 8px; }
.pcz-files .pcz-btn { margin: 0 8px 8px 0; }
.pcz-consent { background: #fff8e6; border: 1px solid #f0d58a; border-radius: 6px; padding: 12px 16px; margin: 12px 0 4px; font-size: 15px; }
.pcz-consent p { font-size: 15px !important; margin: 0 0 8px; }
.pcz-consent p:last-child { margin-bottom: 0; }
.pcz-consent .pcz-btn { margin: 4px 8px 0 0; }
