/* Board of Review sign-up — app-specific styles.
   Shared chrome (masthead, beta banner, .btn family, .container, .spinner,
   .auth-screen, .google-btn, .page-title) comes from theme.css, loaded first. */

/* The signup screen reads left-aligned; the shared .screen rule centers text,
   which is right for the auth/closed/loading screens but wrong here. */
#signup-screen {
  text-align: left;
}

/* BOR Header */
#bor-header {
  background: linear-gradient(135deg, #02133e 0%, #0a3161 100%);
  color: white;
  padding: 30px;
  border-radius: 12px 12px 0 0;
}

#bor-header h1 {
  font-size: 28px;
  color: white;
  margin-bottom: 10px;
}

#bor-header p {
  margin: 5px 0;
  opacity: 0.9;
}

.capacity-indicator {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 8px;
  margin-top: 15px;
  display: inline-block;
}

.capacity-indicator.at-capacity {
  background: rgba(255, 193, 7, 0.3);
  border: 1px solid rgba(255, 193, 7, 0.5);
}

/* Cards */
.card {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
}

.card h2 {
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
}

.card h3 {
  color: #555;
  font-size: 18px;
  margin: 20px 0 12px;
}

.stats-card p {
  margin: 6px 0;
  color: #333;
}

.rank-for-line {
  font-weight: 700;
  color: #02133e;
  margin-bottom: 16px;
}

/* Warning card (closed screen) */
.warning-card {
  background: #fff;
  border: 2px solid #ffc107;
  border-radius: 12px;
  padding: 40px;
  max-width: 560px;
  margin: 0 auto;
}

.warning-card h1 {
  color: #333;
  font-size: 26px;
  margin-bottom: 12px;
}

.warning-card p {
  color: #666;
  margin-bottom: 20px;
}

/* Warning / info message */
.warning-message {
  background: #fff3cd;
  border: 1px solid #ffc107;
  color: #856404;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: left;
}

/* Form controls */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: #02133e;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Reminders / status list */
.form-status-note {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
}

.form-status-list {
  display: grid;
  gap: 10px;
}

.form-status-item {
  background: white;
  padding: 12px 15px;
  border-radius: 6px;
  border-left: 4px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-status-item.valid {
  border-left-color: #28a745;
  background: #f1f9f3;
}

.form-status-item.expired {
  border-left-color: #dc3545;
  background: #fef5f5;
}

.form-status-label {
  font-weight: 500;
  color: #333;
}

.form-status-date {
  font-size: 14px;
}

.form-status-date.valid { color: #28a745; }
.form-status-date.expired { color: #dc3545; }
.form-status-date.not-signed { color: #dc3545; font-style: italic; }

/* "Pay online" action on an unpaid Troop Dues row (opens the DuesPay modal). */
.form-status-pay-link {
  background: none;
  border: none;
  padding: 0 0 0 8px;
  font: inherit;
  font-weight: 700;
  color: #02133e;
  text-decoration: underline;
  cursor: pointer;
}

/* Parent contacts */
#parent-contacts-section,
#volunteer-parent-section {
  background: #f1f3f5;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

.parent-contact-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid #dee2e6;
}

.parent-contact-item h4 {
  color: #02133e;
  margin-bottom: 10px;
  font-size: 16px;
}

.parent-contact-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-top: 10px;
  cursor: pointer;
}

.parent-contact-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-confirmed { background: #d4edda; color: #155724; }
.status-waitlist { background: #fff3cd; color: #856404; }
.status-pending { background: #e7f0ff; color: #1b4f9c; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Existing signup card */
.existing-signup-notice {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 20px;
  border-radius: 8px 8px 0 0;
  margin: -30px -30px 20px -30px;
}

.existing-signup-notice h2 {
  color: white;
  margin-bottom: 5px;
}

.existing-signup-notice .subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.existing-signup-summary {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.existing-signup-summary p {
  margin: 8px 0;
  color: #333;
}

/* Messages */
.error-message, .success-message {
  padding: 15px 20px;
  border-radius: 8px;
  margin: 0 30px 20px;
  font-weight: 500;
}

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

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

@media (max-width: 768px) {
  #bor-header { padding: 20px; }
  #bor-header h1 { font-size: 24px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; justify-content: center; }
}
