/* ============================================
   THGMC Family Membership Styles
   ============================================ */

/* --- Registration page: family member fields --- */

.thgmc-family-fields {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.thgmc-family-fields-label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: #1f2937;
}

.thgmc-family-fields-hint {
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
}

.thgmc-family-field-list {
  margin-bottom: 10px;
}

.thgmc-family-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.thgmc-family-input {
  flex: 1;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.thgmc-family-input:focus {
  border-color: #2e7d32;
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.2);
}

.thgmc-family-field-remove {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.15s, border-color 0.15s;
}

.thgmc-family-field-remove:hover {
  color: #ef4444;
  border-color: #ef4444;
}

.thgmc-family-field-add {
  background: none;
  border: 1px dashed #9ca3af;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  color: #4b5563;
  transition: border-color 0.15s, color 0.15s;
}

.thgmc-family-field-add:hover {
  border-color: #2e7d32;
  color: #2e7d32;
}

/* --- Registration page: hide UM Stripe static price (we show dynamic price instead) --- */

.um-stripe-price-title {
  display: none !important;
}

/* --- Registration page: price display box --- */

.thgmc-price-box {
  background: #f0f7f0;
  border: 2px solid #2e7d32;
  border-radius: 6px;
  padding: 14px 18px;
  margin: 16px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1b5e20;
}

.thgmc-price-box strong {
  color: #1b5e20;
}

/* --- RSVP page: family member checkboxes --- */

.thgmc-family-checkboxes {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fafafa;
}

.thgmc-family-checkboxes-label {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 10px;
  color: #1f2937;
}

.thgmc-family-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 4px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.thgmc-family-checkbox-row:hover {
  border-color: #2e7d32;
  background: #f0f7f0;
}

.thgmc-family-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2e7d32;
  cursor: pointer;
  flex-shrink: 0;
}

.thgmc-cb-name {
  font-size: 15px;
  color: #1f2937;
  flex: 1;
}

.thgmc-cb-status {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

.thgmc-already-going {
  opacity: 0.6;
  cursor: default;
}

.thgmc-already-going:hover {
  border-color: #e5e7eb;
  background: #fff;
}

.thgmc-all-going {
  padding: 12px;
  color: #6b7280;
  font-style: italic;
  font-size: 14px;
}

/* --- RSVP form container --- */

.thgmc-rsvp-form {
  max-width: 500px;
  margin: 24px 0;
}

.thgmc-rsvp-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.thgmc-rsvp-stats {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 12px;
}

.thgmc-rsvp-submit {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.thgmc-rsvp-submit:hover {
  background: #1b5e20;
}

.thgmc-rsvp-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.thgmc-rsvp-unpaid {
  color: #6b7280;
  font-style: italic;
  font-size: 14px;
}

.thgmc-rsvp-going-list {
  margin-top: 8px;
  font-size: 14px;
  color: #1f2937;
}

/* --- Account page: read-only family member display --- */

.thgmc-family-display {
  max-width: 500px;
}

.thgmc-family-primary {
  margin-bottom: 16px;
  font-size: 15px;
}

.thgmc-family-member-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.thgmc-family-member-list li {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  margin-bottom: 6px;
  font-size: 14px;
  background: #fff;
}

.thgmc-family-none {
  color: #6b7280;
  font-style: italic;
}

.thgmc-family-contact {
  color: #6b7280;
  font-size: 13px;
  margin-top: 12px;
}
