/* ═══════════════════════════════════════════
   SDJSL Player Registration — Stylesheet
   Aesthetic: Grassroots football — bold,
   energetic, pitch-side feel
═══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:        #111111;
  --black-mid:    #222222;
  --black-light:  #f2f2f2;
  --red:          #cc0000;
  --red-mid:      #e60000;
  --red-light:    #fff0f0;
  --red-dark:     #990000;
  --white:        #ffffff;
  --off-white:    #fafafa;
  --border:       #d1d5db;
  --border-dark:  #9ca3af;
  --text-primary: #111111;
  --text-secondary:#4b5563;
  --text-hint:    #9ca3af;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:    0 4px 12px rgba(0,0,0,0.15);
  --radius:       10px;
  --radius-sm:    6px;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background: #f0f0f0;
  line-height: 1.6;
  min-height: 100vh;
}

/* ─── HEADER ─── */
.site-header {
  background: var(--black);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 0 var(--red), 0 4px 12px rgba(0,0,0,0.4);
}

.club-badge-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 1.5rem 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.header-text h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.header-text p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.step-nav {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 1.5rem;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 0;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.step-btn:hover { color: rgba(255,255,255,0.85); }

.step-btn.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.step-btn.completed {
  color: rgba(255,255,255,0.7);
  border-bottom-color: #888;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-btn.active .step-num   { background: var(--red); color: #fff; }
.step-btn.completed .step-num { background: #555; color: #fff; }

.step-divider {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0 0.5rem;
}

/* ─── MAIN LAYOUT ─── */
.form-container {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
}

/* ─── CARDS ─── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--black-light);
}

/* ─── FORM STEPS ─── */
.form-step { display: none; }
.form-step.active { display: block; }

.section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--black);
  margin-bottom: 1.25rem;
}

/* ─── FIELDS ─── */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 1rem;
}

.field:last-child { margin-bottom: 0; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.req { color: var(--red); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,0,0,0.12);
}

input.error, select.error, textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

input::placeholder, textarea::placeholder { color: var(--text-hint); }

select { cursor: pointer; }
textarea { resize: vertical; min-height: 80px; }

.field-grid {
  display: grid;
  gap: 0 1rem;
}
.field-grid.two-col { grid-template-columns: 1fr 1fr; }

.field-hint {
  font-size: 0.8rem;
  color: var(--text-hint);
  line-height: 1.5;
  margin-top: 3px;
}

/* ─── CONDUCT ─── */
.conduct-intro p { color: var(--text-secondary); margin-bottom: 0.75rem; }
.conduct-intro p:last-child { margin-bottom: 0; }

.conduct-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.conduct-icon { font-size: 1.2rem; }

.conduct-sub {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.conduct-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.conduct-list li {
  padding: 0.55rem 0 0.55rem 1.6rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-primary);
  border-bottom: 1px solid #f3f4f6;
}
.conduct-list li:last-child { border-bottom: none; }

.conduct-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 0.85rem;
}

.warning-box {
  background: #fffbeb;
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.6rem 0.9rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber-dark);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ─── SANCTIONS ─── */
.sanction-card { background: var(--red-light); border-color: #fca5a5; }
.sanction-card .card-title { color: var(--red); border-bottom-color: #fecaca; }

.sanction-list {
  list-style: none;
  margin-bottom: 1rem;
}
.sanction-list li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.9rem;
  color: #7f1d1d;
  border-bottom: 1px solid #fecaca;
}
.sanction-list li:last-child { border-bottom: none; }
.sanction-list li::before {
  content: '!';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

.sanction-note {
  font-size: 0.82rem;
  color: #991b1b;
  font-weight: 500;
  margin-top: 0.5rem;
}

/* ─── AGREE ROW ─── */
.agree-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
}

/* ─── YES/NO TOGGLE ─── */
.yes-no-toggle {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.yn-btn {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  transition: all 0.15s;
}

.yn-btn:hover { border-color: var(--border-dark); color: var(--text-primary); }

.yn-btn.selected.yn-yes {
  background: var(--red-light);
  border-color: var(--red);
  color: var(--red-dark);
}

.yn-btn.selected.yn-no {
  background: var(--black-light);
  border-color: var(--black);
  color: var(--black);
}

.yn-btn.error-border { border-color: var(--red); }

/* ─── DECLARATIONS ─── */
.privacy-intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.declarations {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.declaration-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  font-weight: normal;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: background 0.1s;
}
.declaration-item:last-child { border-bottom: none; }
.declaration-item:hover { background: #fff5f5; border-radius: var(--radius-sm); padding-left: 6px; padding-right: 6px; }

.declaration-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
  border: none;
  box-shadow: none;
}
.declaration-item input[type="checkbox"]:focus { outline: 2px solid var(--red); }

.declaration-item a { color: var(--green-mid); text-decoration: underline; }

.privacy-notice {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--black-light);
  border-radius: var(--radius-sm);
  border: 1px solid #ddd;
}
.privacy-notice h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  margin-bottom: 0.4rem;
}
.privacy-notice p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ─── OFFICIALS ─── */
.official-card {
  border: 1px dashed var(--border-dark);
  background: var(--off-white);
}
.official-card .card-title { color: var(--text-secondary); }

/* ─── BUTTONS ─── */
.btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.btn-primary, .btn-secondary, .btn-submit {
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, background 0.15s;
  border: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(204,0,0,0.3);
}
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 4px 14px rgba(153,0,0,0.4); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: #f3f4f6; }

.btn-submit {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 1.05rem;
  padding: 0.7rem 2rem;
  border: 2px solid var(--red);
}
.btn-submit:hover { background: var(--red); color: var(--white); box-shadow: 0 4px 14px rgba(204,0,0,0.4); transform: translateY(-1px); }

/* ─── SAFEGUARDING ─── */
.safeguarding-card { border-color: #1d4ed8; background: #eff6ff; }
.safeguarding-card .card-title { color: #1e3a8a; border-bottom-color: #bfdbfe; }

.safeguarding-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1d4ed8;
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.safeguarding-link:hover { background: #1e3a8a; transform: translateY(-1px); }

/* ─── SUCCESS BANNER ─── */
.success-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fff4;
  border: 1.5px solid #4ade80;
  border-left: 5px solid #16a34a;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #14532d;
  animation: slideDown 0.3s ease;
}
.success-banner[hidden] { display: none; }
.success-banner-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── SUCCESS SCREEN (legacy — remove) ─── */
.success-screen {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.success-screen[hidden] { display: none; }

.success-inner {
  padding: 3rem 2rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }

.success-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 1rem;
}

.success-inner p {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.success-inner .btn-primary { margin-top: 1rem; }

/* ─── ERROR MESSAGES ─── */
.error-msg {
  font-size: 0.78rem;
  color: var(--red);
  margin-top: 3px;
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--text-hint);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  background: var(--white);
}
footer p { margin-bottom: 2px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 620px) {
  .field-grid.two-col { grid-template-columns: 1fr; }
  .agree-row { grid-template-columns: 1fr; }
  .header-inner { padding: 0.75rem 1rem 0.5rem; }
  .step-nav { padding: 0 0.75rem; overflow-x: auto; }
  .step-btn { font-size: 0.75rem; padding: 0.5rem 0; }
  .form-container { padding: 0 0.75rem 2rem; margin-top: 1rem; }
  .card { padding: 1rem; }
}

/* ─── SUCCESS BANNER EXPANDED ─── */
.success-banner { display: block; padding: 0; overflow: hidden; }
.success-banner[hidden] { display: none; }
.success-banner-content { display: flex; flex-direction: column; }

.success-banner-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 1rem 1.25rem;
  background: #f0fff4;
  border-bottom: 1px solid #bbf7d0;
  font-size: 0.95rem;
  color: #14532d;
}
.success-banner-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }

/* ─── FA NEXT STEP ─── */
.fa-next-step {
  background: #eff6ff;
  border-top: 1px solid #bfdbfe;
  padding: 1.25rem;
}

.fa-next-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.fa-next-step p {
  font-size: 0.88rem;
  color: #1e40af;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.fa-steps {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fa-steps li {
  font-size: 0.87rem;
  color: #1e40af;
  line-height: 1.5;
}

.fa-register-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1d4ed8;
  color: #fff;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(29,78,216,0.3);
}
.fa-register-btn:hover { background: #1e3a8a; transform: translateY(-1px); }

/* ─── FA INFO CARD ─── */
.fa-info-card { border-color: #93c5fd; background: #eff6ff; }
.fa-info-card .card-title { color: #1e3a8a; border-bottom-color: #bfdbfe; }

.fa-steps-inline {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fa-steps-inline li {
  font-size: 0.87rem;
  color: #1e40af;
  line-height: 1.5;
}

/* ─── HEADER NAV LINKS ─── */
.header-home-link { display: flex; }
.header-nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}
.header-nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.header-nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }
.header-nav-fa {
  background: rgba(204,0,0,0.3);
  color: #fff !important;
  border: 1px solid rgba(204,0,0,0.5);
}
.header-nav-fa:hover { background: var(--red) !important; }

@media (max-width: 480px) {
  .header-nav-links { display: none; }
}
