/* CSS Custom Properties for Theming */
:root {
  /* Default/Boys Theme Colors */
  --primary-color: #002066;
  --primary-hover: #001144;
  --primary-light: #0033aa;
  --accent-background: #f1f8ff;
  --accent-light: #f0f5ff;
  --accent-lighter: #e0ebff;
  
  /* Common Colors */
  --text-primary: #2c3e50;
  --text-secondary: #555;
  --text-muted: #666;
  --text-light: #6c757d;
  --success-color: #27ae60;
  --success-hover: #229954;
  --danger-color: #e74c3c;
  --danger-hover: #c0392b;
  --paypal-blue: #0070ba;
  --paypal-blue-hover: #005ea6;
  
  /* Layout Colors */
  --bg-white: #fff;
  --bg-light: #f8f9fa;
  --bg-muted: #f1f1f1;
  --border-light: #e1e1e1;
  --border-muted: #dee2e6;
  --shadow-light: rgba(0,0,0,0.1);
  --shadow-medium: rgba(0,0,0,0.15);
  
  /* Typography */
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.9em;
  --font-size-lg: 1.1em;
  --font-size-xl: 1.2em;
  --font-size-xxl: 1.3em;
  --font-size-hero: 2.5em;
  
  /* Spacing */
  --spacing-xs: 5px;
  --spacing-sm: 10px;
  --spacing-md: 15px;
  --spacing-lg: 20px;
  --spacing-xl: 30px;
  --spacing-xxl: 40px;
  
  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 15px;
  --radius-xxl: 20px;
  --radius-pill: 25px;
}

/* Girls Theme Override */
.theme-girls {
  --primary-color: #e21212;
  --primary-hover: #cc1010;
  --primary-light: #e21212;
  --accent-background: #fff0f0;
  --accent-light: #fff0f0;
  --accent-lighter: #ffe5e5;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  min-height: 100vh;
}

/* Layout Components */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.header {
  background: var(--bg-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: 0 10px 30px var(--shadow-light);
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header-logo {
  flex-shrink: 0;
}

.logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.header-content {
  flex: 1;
  text-align: left;
}

.header h1 {
  color: var(--text-primary);
  font-size: var(--font-size-hero);
  margin-bottom: var(--spacing-sm);
}

.mission-statement {
  color: var(--text-secondary);
  font-size: var(--font-size-base);
  line-height: 1.5;
  font-style: italic;
}

.header p {
  color: var(--text-muted);
  font-size: var(--font-size-lg);
}

.subheader {
  color: var(--text-secondary);
  font-size: 1.1em;
  font-style: italic;
}

/* Instructions Section */
.instructions-section {
  background: rgba(255,255,255,0.95);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: 0 8px 25px var(--shadow-light);
  border: 1px solid rgba(255,255,255,0.8);
}

.instructions-section h2 {
  color: var(--text-primary);
  font-size: var(--font-size-xxl);
  margin-bottom: var(--spacing-md);
  text-align: center;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--spacing-sm);
}

.instructions-section p {
  color: var(--text-secondary);
  font-size: var(--font-size-lg);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  text-align: left;
}

.instructions-section p:last-child {
  margin-bottom: 0;
}

.instructions-section a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.instructions-section a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

/* Form Container */
.form-container {
  background: var(--bg-white);
  padding: var(--spacing-xxl);
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 35px var(--shadow-light);
}

/* Form Sections */
.form-section {
  margin-bottom: var(--spacing-xl);
}

.form-section h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-xxl);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--spacing-xs);
}

/* Form Layout */
.form-row {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input:invalid {
  border-color: var(--danger-color);
}

.form-group input:valid {
  border-color: var(--success-color);
}

.error-message {
  color: var(--danger-color);
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  display: none;
}

/* Buttons */
.copy-address-btn {
  background: var(--primary-color);
  color: var(--bg-white);
  border: none;
  padding: 8px var(--spacing-md);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--font-size-sm);
  margin-top: var(--spacing-xs);
  transition: background-color 0.3s ease;
}

.copy-address-btn:hover {
  background: var(--primary-hover);
}

.add-player-btn {
  background: var(--success-color);
  color: var(--bg-white);
  border: none;
  padding: 12px var(--spacing-lg);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: var(--font-size-base);
  font-weight: 500;
  margin-top: var(--spacing-md);
  transition: background-color 0.3s ease;
}

.add-player-btn:hover {
  background: var(--success-hover);
}

.remove-player-btn {
  background: var(--danger-color);
  color: var(--bg-white);
  border: none;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.8em;
}

.remove-player-btn:hover {
  background: var(--danger-hover);
}

/* Optional Section */
.optional-section {
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-muted);
}

.optional-label {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

/* Player Sections */
.player-section {
  background: var(--accent-background);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--primary-color);
  position: relative;
}

.player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.player-title {
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  font-weight: 600;
}

/* NEW: Dual Button Membership Sections */
.membership-section {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.membership-section.one-time {
  border-color: var(--success-color);
}

.membership-section.subscription {
  border-color: var(--primary-color);
}

.theme-girls .membership-section.subscription {
  border-color: #e21212;
}

.section-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border-light);
}

.section-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.one-time .section-title {
  color: var(--success-color);
}

.subscription .section-title {
  color: var(--primary-color);
}

.theme-girls .subscription .section-title {
  color: #e21212;
}

.section-description {
  color: var(--text-muted);
  font-style: italic;
}

.membership-option-new {
  background: var(--bg-white);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  transition: all 0.3s ease;
}

.membership-option-new:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px var(--shadow-light);
}

.membership-option-new.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-lighter) 100%);
}

.option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.option-title {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--text-primary);
}

.option-price {
  font-size: 1.4em;
  font-weight: bold;
  color: var(--success-color);
}

.option-benefits {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.section-button {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  font-weight: bold;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: var(--spacing-lg);
  transition: all 0.3s ease;
}

.one-time-button {
  background: var(--success-color);
  color: var(--bg-white);
}

.one-time-button:hover {
  background: var(--success-hover);
}

.subscription-button {
  background: var(--primary-color);
  color: var(--bg-white);
}

.subscription-button:hover {
  background: var(--primary-hover);
}

.theme-girls .subscription-button {
  background: #e21212;
}

.theme-girls .subscription-button:hover {
  background: #cc1010;
}

.section-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.no-join-section {
  text-align: center;
  padding: var(--spacing-xl);
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
  border-radius: var(--radius-xl);
  border: 2px solid #d1e7ff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.no-join-button {
  background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
  color: var(--bg-white);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-lg);
  font-weight: bold;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  margin-top: var(--spacing-md);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.no-join-button:hover {
  background: linear-gradient(135deg, #357abd 0%, #2968a3 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
}

/* Original Membership Options (for backward compatibility) */
.membership-levels {
  display: grid;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.membership-option {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.membership-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 5px 15px rgba(0,32,102,0.1);
}

.membership-option input[type="radio"] {
  position: absolute;
  opacity: 0;
}

.membership-option.selected {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-lighter) 100%);
}

.membership-title {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.membership-price {
  font-size: 1.4em;
  color: var(--success-color);
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

.membership-benefits {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

/* Checkout Section */
.checkout-section {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--border-muted);
}

.order-summary {
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--spacing-sm);
}

.summary-total {
  font-weight: bold;
  font-size: var(--font-size-xl);
  border-top: 1px solid var(--border-muted);
  padding-top: var(--spacing-sm);
}

.paypal-button {
  background: var(--paypal-blue);
  color: var(--bg-white);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-base);
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.paypal-button:hover {
  background: var(--paypal-blue-hover);
}

.paypal-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* Landing Page Specific Styles */
.membership-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  max-width: 800px;
  margin: 0 auto;
}

.membership-button {
  background: var(--bg-white);
  border: none;
  padding: 60px var(--spacing-xxl);
  border-radius: var(--radius-xxl);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 15px 35px var(--shadow-light);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.membership-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  transition: left 0.5s ease;
  z-index: 1;
}

.membership-button.boys::before {
  background: linear-gradient(135deg, #002066 0%, #0033aa 100%);
}

.membership-button.girls::before {
  background: linear-gradient(135deg, #e21212 0%, #cc1010 100%);
}

.membership-button:hover::before {
  left: 0;
}

.membership-button:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.membership-button:hover .button-content {
  color: var(--bg-white);
  transform: scale(1.05);
}

.button-content {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.membership-button h2 {
  font-size: 2.8em;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 700;
}

.membership-button p {
  font-size: var(--font-size-xl);
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
}

.button-icon {
  font-size: 4em;
  margin-bottom: var(--spacing-lg);
}

.boys .button-icon {
  color: #002066;
}

.girls .button-icon {
  color: #e21212;
}

.cta-text {
  font-size: 1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

  .clear-selection-button {
    display: block;
    width: auto;
    margin: 20px auto;
    background: #6c757d;
    color: #fff;
    padding: 10px 20px;
    font-size: 0.9em;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

  .clear-selection-button:hover {
    background: #5a6268;
    transform: translateY(-2px);
  }

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  
  .container {
    padding: var(--spacing-sm);
  }
  
  .form-container {
    padding: var(--spacing-lg);
  }

  .player-header {
    flex-direction: column;
    gap: var(--spacing-sm);
    align-items: flex-start;
  }
  
  .membership-buttons {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .header h1 {
    font-size: 2.5em;
  }
  
  .header {
    padding: var(--spacing-xl) var(--spacing-lg);
  }
  
  .membership-button {
    padding: var(--spacing-xxl) var(--spacing-lg);
  }
  
  .membership-button h2 {
    font-size: 2.2em;
  }

  .option-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xs);
  }
}

@media (max-width: 480px) {
  .container {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .header h1 {
    font-size: 2em;
  }
  
  .header p {
    font-size: var(--font-size-lg);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }