.tr-registration-form h2 {
  margin-bottom: 1.875rem;
}

.tr-registration-form h3 {
  margin-bottom: 1.25rem;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0.625rem;
}

.tr-form-section {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 0.5rem;
}

.tr-form-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.tr-form-section-header h3 {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.tr-form-group {
  margin-bottom: 1.25rem;
}

.tr-form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.tr-form-group input[type="text"],
.tr-form-group input[type="email"],
.tr-form-group input[type="tel"],
.tr-form-group input[type="date"],
.tr-form-group select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.25rem;
  font-size: 1rem;
  box-sizing: border-box;
  margin-top: 0px !important;
  min-height: 2.5rem;
}

.tr-form-group input:focus,
.tr-form-group select:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.tr-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.tr-player-row {
  background: rgba(255, 255, 255, 0.5);
  padding: 1.25rem;
  margin-bottom: 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tr-form-group-actions {
  display: flex;
  align-items: flex-end;
  align-self: end;
}

.tr-form-group-actions .btn {
  width: 100%;
  min-height: 2.5rem; /* Match input height */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button styles are now handled by Automatic.css */
/* Using btn, btn--primary, btn--success, btn--danger classes */

.tr-form-actions {
  text-align: center;
  margin-top: 1.875rem;
}

.tr-message {
  padding: 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.5rem;
  font-weight: 500;
}

.tr-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.tr-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.tr-no-players {
  font-style: italic;
  text-align: center;
  padding: 1.25rem;
  opacity: 0.7;
}

.tr-total-section {
  background: rgba(0, 0, 0, 0.03);
  border: 2px solid currentColor;
}

.tr-summary {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0.5rem;
}

.tr-summary p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.tr-total-price {
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  margin-top: 0.625rem !important;
  padding-top: 0.625rem;
  border-top: 2px solid currentColor;
}

/* Tournament Public View Styles */
.tr-tabs {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 0;
  border-bottom: 2px solid currentColor;
  padding-bottom: 0;
}

.tr-tab {
  padding: 0.75rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  transition: all 0.2s ease;
  margin-bottom: -2px;
}

.tr-tab:hover {
  color: currentColor;
  background: rgba(0, 0, 0, 0.02);
}

.tr-tab-active {
  color: currentColor;
  border-bottom-color: currentColor;
  font-weight: 600;
}

.tr-tab-content {
  padding-top: 1.25rem;
}

.tr-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.tr-badge-scheduled {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.7);
}

.tr-badge-live {
  background: rgba(220, 50, 50, 0.1);
  color: #dc3232;
  animation: pulse 2s infinite;
}

.tr-badge-finished {
  background: rgba(0, 115, 170, 0.1);
  color: #0073aa;
}

.tr-badge-cancelled {
  background: rgba(0, 0, 0, 0.1);
  color: rgba(0, 0, 0, 0.5);
  text-decoration: line-through;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.tr-loading {
  text-align: center;
  padding: 2.5rem;
  font-size: 1.125rem;
  opacity: 0.7;
}

.tr-playoff-bracket-tree {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  padding: 2rem 0;
  overflow-x: auto;
  position: relative;
}

.tr-bracket-round {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 250px;
  position: relative;
  padding: 0 2rem;
}

.tr-bracket-matches {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.tr-bracket-match {
  position: relative;
}

.tr-bracket-match-box {
  border: 2px solid currentColor;
  border-radius: 0.5rem;
  background: #fff;
  min-width: 200px;
  margin: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tr-bracket-connector-area {
  width: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  flex: 0 0 4rem;
  padding-top: 3rem;
}

@media (max-width: 768px) {
  .tr-form-row {
    grid-template-columns: 1fr;
  }
  
  .tr-form-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }
  
  .tr-tabs {
    flex-wrap: wrap;
  }
  
  .tr-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  .tr-playoff-bracket-tree {
    flex-direction: column;
    overflow-x: visible;
  }
  
  .tr-bracket-round {
    width: 100%;
    min-width: auto;
    padding: 0 1rem;
  }
  
  .tr-bracket-connector-area {
    width: 100% !important;
    height: 2rem !important;
    padding-top: 0 !important;
    flex: none !important;
  }
  
  /* Standings Table: Show mobile version by default, hide desktop */
  .tr-standings-table-desktop {
    display: none !important;
  }
  
  .tr-standings-table-mobile {
    display: table !important;
  }
  
  .tr-standings-toggle-mobile {
    display: block;
  }
  
  /* When showFullTable is true on mobile, show desktop table */
  .tr-standings-table-desktop.show-full {
    display: table !important;
  }
  
  .tr-standings-table-mobile.show-full {
    display: none !important;
  }
}

@media (min-width: 769px) {
  /* Desktop: Show full table, hide mobile version */
  .tr-standings-table-desktop {
    display: table !important;
  }
  
  .tr-standings-table-mobile {
    display: none !important;
  }
  
  .tr-standings-toggle-mobile {
    display: none;
  }
}

