/* Hero Section */
.u-section-1 .u-sheet-1 {
  min-height: 340px;
  margin-top: 0;
  margin-bottom: 0;
}

.u-section-1 .u-text-1 {
  font-weight: 700;
  margin: 60px auto 0;
  font-size: 2.5rem;
}

.u-section-1 .u-text-2 {
  font-weight: 400;
  margin: 10px auto 0;
  font-size: 1.5rem;
  color: #478ac9;
}

.u-section-1 .u-text-3 {
  margin: 20px auto 40px;
  max-width: 700px;
}

/* Info Cards Section */
.u-section-2 .u-sheet-1 {
  min-height: 200px;
}

.u-section-2 .u-list-1 {
  margin: 40px 0;
}

.u-section-2 .u-repeater-1 {
  grid-template-columns: repeat(3, calc(33.333% - 14px));
  min-height: 180px;
  --gap: 20px;
  grid-gap: 20px;
}

.info-card {
  background-color: rgba(71, 138, 201, 0.1);
  border-radius: 8px;
}

.info-card .u-container-layout {
  padding: 30px 25px;
}

.info-card-title {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: #478ac9;
}

.info-card-text {
  font-size: 0.95rem;
  margin: 0;
}

/* Form Section */
.u-section-3 .u-sheet-1 {
  min-height: auto;
  padding-bottom: 60px;
}

.u-section-3 .u-text-1 {
  margin: 50px auto 30px;
  font-weight: 700;
}

.form-wrapper {
  max-width: 700px;
  margin: 0 auto 60px;
}

.u-section-3 .u-form-1 {
  width: 100%;
}

.u-section-3 .u-label-1,
.u-section-3 .u-label-2,
.u-section-3 .u-label-3,
.u-section-3 .u-label-4,
.u-section-3 .u-label-5,
.u-section-3 .u-label-6 {
  font-weight: 500;
  text-transform: uppercase;
}

.u-section-3 .u-btn-1 {
  background-image: none;
  border-style: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  width: 100%;
  padding: 14px 0 15px;
}

.u-form-group-row {
  display: flex;
  gap: 20px;
}

.u-form-group-row .u-form-group {
  flex: 1;
}

/* Back Link in Header */
.back-link {
  display: inline-block;
  padding: 10px 0;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  color: #478ac9 !important;
}

/* Payment Cancelled Banner */
.payment-cancelled-banner {
  background-color: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.3);
  padding: 15px 0;
  text-align: center;
}

.payment-cancelled-banner p {
  margin: 0;
  color: #ff6b6b;
  font-weight: 500;
}

/* Form Error & Success Messages */
.form-error {
  color: #ff6b6b;
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
}

.form-success {
  color: #51cf66;
  text-align: center;
  margin-top: 15px;
  font-size: 0.95rem;
}

/* Team ID Card (Success Page) */
.team-id-card {
  background-color: rgba(71, 138, 201, 0.2);
  border: 2px solid rgba(71, 138, 201, 0.4);
  border-radius: 12px;
  padding: 30px;
  max-width: 500px;
  margin: 30px auto;
  text-align: center;
}

.team-id-card h3 {
  color: #478ac9;
  margin: 0 0 10px;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.team-id-value {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: #fff;
  margin: 15px 0;
}

.team-id-note {
  color: #aaa;
  font-size: 0.9rem;
  margin: 10px 0 0;
}

/* Registration Details Table */
.registration-details {
  max-width: 500px;
  margin: 30px auto;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
}

.registration-details h3 {
  color: #478ac9;
  margin: 0 0 15px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table td {
  padding: 8px 0;
}

.details-label {
  color: #aaa;
  width: 40%;
}

.details-value {
  font-weight: 500;
}

/* Team Info Banner (Manage Team Page) */
.team-info-banner {
  background-color: rgba(71, 138, 201, 0.15);
  border-radius: 8px;
  padding: 20px 30px;
  max-width: 800px;
  margin: 30px auto 0;
}

.team-info-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.team-info-label {
  color: #aaa;
  font-size: 0.9rem;
}

.team-info-value {
  font-weight: 600;
  color: #478ac9;
}

/* Player Roster */
.player-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.player-number {
  color: #478ac9;
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 30px;
  text-align: center;
}

.player-name-input {
  flex: 1;
  font-size: 1rem;
}

.remove-player-btn {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.remove-player-btn:hover {
  background: rgba(220, 53, 69, 0.4);
}

.add-player-btn {
  border: 2px dashed rgba(71, 138, 201, 0.4) !important;
  background: transparent !important;
  color: #478ac9 !important;
  transition: border-color 0.2s;
}

.add-player-btn:hover {
  border-color: #478ac9 !important;
}

.player-count-display {
  text-align: center;
  color: #aaa;
  font-size: 0.95rem;
  margin: 10px 0;
}

/* Responsive */
@media (max-width: 991px) {
  .u-section-2 .u-repeater-1 {
    grid-template-columns: repeat(1, 100%);
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-text-1 {
    font-size: 2rem;
  }

  .u-section-1 .u-text-3 {
    margin-left: 10px;
    margin-right: 10px;
  }

  .u-form-group-row {
    flex-direction: column;
    gap: 0;
  }

  .form-wrapper {
    margin-left: 10px;
    margin-right: 10px;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-text-1 {
    font-size: 1.6rem;
    margin-top: 30px;
  }

  .u-section-1 .u-text-2 {
    font-size: 1.2rem;
  }

  .info-card .u-container-layout {
    padding: 20px 15px;
  }

  .team-info-row {
    flex-direction: column;
    gap: 8px;
  }

  .team-id-value {
    font-size: 1.6rem;
    letter-spacing: 2px;
  }

  .player-row {
    gap: 8px;
  }

  .player-number {
    min-width: 24px;
    font-size: 0.85rem;
  }
}


/* ── Additional mobile fixes ── */
@media (max-width: 575px) {
  /* Waiver tooltip: position above, shifted left on narrow screens */
  .waiver-tooltip {
    width: 240px;
    left: 0;
    transform: none;
    font-size: 0.76rem;
  }
  .waiver-tooltip::after {
    left: 20px;
    transform: none;
  }

  /* Team info banner: stack vertically */
  .team-info-row {
    flex-direction: column;
    gap: 6px;
  }

  /* Form wrapper: full width with padding */
  .form-wrapper {
    margin-left: 0;
    margin-right: 0;
  }

  /* Registration success page */
  .team-id-value {
    font-size: 1.3rem;
    letter-spacing: 2px;
    word-break: break-all;
  }

  /* Roster section */
  .u-section-3 .u-sheet-1,
  .u-section-3 .u-sheet {
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 400px) {
  .u-section-1 .u-text-1 {
    font-size: 1.4rem !important;
    margin-top: 24px;
  }
  .u-section-1 .u-text-2 {
    font-size: 1.05rem !important;
  }
}

/* ── FORM ALIGNMENT FIXES ── */
/* Kill nicepage partition padding that indents manager name fields */
.u-form-group-row .u-form-group,
.u-form-group-row .u-form-partition-factor-2 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-top: 0 !important;
}
/* Override nicepage flex-end alignment that misaligns form fields */
.u-form-vertical {
  display: block !important;
}

/* Every top-level form group is full width, stacked vertically */
.u-form-vertical .u-form-group {
  width: 100% !important;
  margin-bottom: 24px;
}

/* Side-by-side rows (email+phone, first+last name) */
.u-form-group-row {
  display: flex !important;
  gap: 20px !important;
  width: 100%;
  margin-bottom: 24px;
}

/* Each half inside a row */
.u-form-group-row .u-form-group {
  flex: 1 !important;
  width: auto !important;
  margin-bottom: 0 !important;
}

/* nicepage partition-factor overrides — let flex handle sizing */
.u-form-vertical .u-form-partition-factor-2 {
  width: auto !important;
  flex: 1 !important;
}

/* Labels consistently above inputs */
.u-label {
  display: block !important;
  margin-bottom: 7px !important;
  font-size: 0.82rem !important;
}

/* Inputs consistent height and full width */
.u-input {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: 44px !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
}

textarea.u-input {
  height: auto !important;
  min-height: 100px !important;
  resize: vertical !important;
}

/* Submit button row — no bottom margin needed */
.u-form-submit {
  margin-bottom: 0 !important;
  margin-top: 8px !important;
}

/* Waiver group spacing */
.waiver-group {
  margin-bottom: 24px !important;
}

/* Responsive: stack side-by-side rows on mobile */
@media (max-width: 600px) {
  .u-form-group-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .u-form-group-row .u-form-group {
    margin-bottom: 24px !important;
  }
}


/* ══════════════════════════════════════════
   MOBILE & TABLET — register.html
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Page wrapper */
  .u-section-1 .u-sheet-1 {
    padding: 20px 16px !important;
  }
  /* Header title */
  .u-section-1 .u-text-1 {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }
  /* Form container */
  .u-form-container,
  .u-inner-form {
    padding: 0 !important;
  }
  /* Stack all side-by-side rows */
  .u-form-group-row {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .u-form-group-row .u-form-group {
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  /* Bigger tap targets on mobile */
  .u-input {
    height: 50px !important;
    font-size: 1rem !important;
    padding: 12px 14px !important;
  }
  textarea.u-input {
    height: auto !important;
    min-height: 110px !important;
  }
  /* Submit button */
  .u-btn-1 {
    padding: 16px !important;
    font-size: 1rem !important;
  }
  /* Waiver text */
  .waiver-group label {
    font-size: .88rem !important;
  }
  /* Payment banner */
  .payment-cancelled-banner {
    font-size: .85rem !important;
    padding: 12px 16px !important;
  }
}

@media (max-width: 480px) {
  .u-section-1 .u-text-1 {
    font-size: 1.5rem !important;
  }
  .u-form-container {
    margin: 0 !important;
    border-radius: 8px !important;
    padding: 20px 14px !important;
  }
}
