/* ============================================================
   Gunfight at Gamble Gulch — Public Registration Form Styles
   v3.5 — Fix family role selector theme alignment
   ============================================================ */

:root {
  --gagg-brown:      #8B4513;
  --gagg-gold:       #FAAA14;
  --gagg-light-gold: #2a1a00;
  --gagg-dark:       #FFDFA3;
  --gagg-border:     #B97900;
  --gagg-red:        #c0392b;
  --gagg-white:      #0f0b06;
  --gagg-shadow:     0 4px 18px rgba(0,0,0,.45);
  --gagg-radius:     8px;
}

/* ── Wrapper ─────────────────────────────────────────────── */
.gagg-wrap {
  font-family: 'Roboto Slab', Georgia, 'Times New Roman', serif;
  color: var(--gagg-dark);
  max-width: 760px;
  margin: 0 auto;
  padding: 0 12px;
  background: #06080A;
}

/* ── Banners ─────────────────────────────────────────────── */
.gagg-success-banner,
.gagg-error-banner {
  padding: 16px 20px;
  border-radius: var(--gagg-radius);
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.5;
}
.gagg-success-banner { background: #d4edda; border: 2px solid #28a745; color: #155724; }
.gagg-error-banner   { background: #f8d7da; border: 2px solid #dc3545; color: #721c24; }
.gagg-error-banner ul { margin: 8px 0 0 16px; }

/* ── Section cards ───────────────────────────────────────── */
.gagg-section {
  background: #130d04;
  border: 1.5px solid var(--gagg-border);
  border-radius: var(--gagg-radius);
  padding: 28px 28px 32px;
  margin-bottom: 24px;
  box-shadow: var(--gagg-shadow);
}
.gagg-section-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--gagg-gold);
  padding: 0 8px;
  background: #130d04;
  letter-spacing: 0.03em;
}
.gagg-section-legend small { font-size: .75em; color: #888; font-weight: normal; }
.gagg-icon { display: flex; align-items: center; flex-shrink: 0; }

/* ── Grid helpers ────────────────────────────────────────── */
.gagg-row { display: flex; gap: 16px; flex-wrap: wrap; }
.gagg-row-2 > .gagg-field { flex: 1 1 240px; min-width: 0; }
.gagg-row-3 > .gagg-field { flex: 1 1 180px; min-width: 0; }

/* ── Address row ─────────────────────────────────────────── */
.gagg-address-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.gagg-field-city  { flex: 3 1 160px; min-width: 120px; }
.gagg-field-state { flex: 0 0 100px; min-width: 90px; }
.gagg-field-zip   { flex: 1 1 100px; min-width: 80px; }

.gagg-field-state select,
.gagg-field-zip   input {
  width: 100%;
  box-sizing: border-box;
}

/* ── Fields ──────────────────────────────────────────────── */
.gagg-field { display: flex; flex-direction: column; margin-bottom: 20px; }
.gagg-field label {
  font-size: .88em;
  font-weight: bold;
  color: #FAAA14;
  margin-bottom: 6px;
  white-space: nowrap;
}
.gagg-field label .req { color: var(--gagg-red); }
.gagg-field input[type="text"],
.gagg-field input[type="email"],
.gagg-field input[type="tel"],
.gagg-field textarea,
.gagg-field select {
  border: 1.5px solid var(--gagg-border);
  border-radius: 5px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: .97em;
  background: #1a0f00;
  color: #FFDFA3;
  transition: border-color .2s;
  box-sizing: border-box;
  width: 100%;
}
.gagg-field input:focus,
.gagg-field textarea:focus,
.gagg-field select:focus {
  outline: none;
  border-color: var(--gagg-gold);
  box-shadow: 0 0 0 3px rgba(200,134,10,.15);
}
.gagg-hint { font-size: .85em; color: #B97900; margin: -6px 0 12px; font-style: italic; }
.gagg-error { color: var(--gagg-red); font-size: .82em; margin-top: 3px; min-height: 1em; }
.gagg-conditional { margin-top: 10px; }

/* ── Multi-step category ─────────────────────────────────── */
.gagg-step-label {
  font-weight: bold;
  color: var(--gagg-brown);
  font-size: .92em;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ── Breadcrumb ─────────────────────────────────────────── */
.gagg-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: #1a0f00;
  border: 1px solid var(--gagg-border);
  border-radius: var(--gagg-radius);
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: .85em;
  color: #FFDFA3;
}
.gagg-bc-item   { font-weight: bold; color: #FFDFA3; }
.gagg-bc-sep    { color: var(--gagg-gold); font-weight: bold; }
.gagg-bc-gender { color: #FFDFA3; }
.gagg-bc-group  { color: #FFDFA3; }
.gagg-bc-cat    { color: #FFDFA3; text-decoration: underline dotted; }

/* Gender buttons */
.gagg-gender-buttons { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.gagg-gender-btn {
  flex: 1 1 140px;
  padding: 16px 12px;
  background: #1a0f00;
  border: 2px solid var(--gagg-border);
  border-radius: var(--gagg-radius);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.05em;
  font-weight: bold;
  color: #FFDFA3;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  text-align: center;
}
.gagg-gender-btn:hover    { background: #2a1a00; border-color: var(--gagg-gold); }
.gagg-gender-btn.selected { background: var(--gagg-gold); color: #06080A; border-color: var(--gagg-gold); }

/* Category group buttons */
.gagg-cat-groups { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.gagg-cat-group-btn {
  flex: 1 1 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: #1a0f00;
  border: 2px solid var(--gagg-border);
  border-radius: var(--gagg-radius);
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: .9em;
  color: #FFDFA3;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  text-align: center;
}
.gagg-cat-group-btn:hover    { background: #2a1a00; border-color: var(--gagg-gold); }
.gagg-cat-group-btn.selected { background: var(--gagg-gold); color: #06080A; border-color: var(--gagg-gold); }
.gagg-cat-icon { font-size: 1.5em; }

/* Category pills */
.gagg-cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.gagg-cat-pill {
  padding: 8px 16px;
  background: #1a0f00;
  border: 1.5px solid var(--gagg-border);
  border-radius: 20px;
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: .9em;
  color: #FFDFA3;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.gagg-cat-pill:hover    { background: #2a1a00; border-color: var(--gagg-gold); }
.gagg-cat-pill.selected { background: var(--gagg-gold); color: #06080A; border-color: var(--gagg-gold); }

/* Back buttons */
.gagg-cat-back { margin-top: 10px; }
.gagg-back-btn {
  background: none; border: none; color: var(--gagg-gold);
  font-family: Georgia, serif; font-size: .88em; cursor: pointer;
  text-decoration: underline; padding: 0;
}
.gagg-back-btn:hover { color: var(--gagg-brown); }

/* Selection summary */
.gagg-cat-summary {
  display: flex; align-items: center; gap: 10px;
  background: #1a0f00; border: 1.5px solid var(--gagg-border);
  border-radius: var(--gagg-radius); padding: 10px 14px;
  font-weight: bold; color: #FAAA14; margin-bottom: 16px;
}
.gagg-summary-icon { font-size: 1.2em; flex-shrink: 0; }
.gagg-change-link {
  background: none; border: none; color: var(--gagg-gold);
  font-family: Georgia, serif; font-size: .85em; cursor: pointer;
  text-decoration: underline; padding: 0; margin-left: auto;
}
.gagg-change-link:hover { color: var(--gagg-brown); }

/* ── Registration type ───────────────────────────────────── */
.gagg-reg-type-block { margin-top: 20px; }
.gagg-reg-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px; margin-bottom: 8px;
}
.gagg-reg-option {
  display: flex; align-items: flex-start; gap: 8px;
  background: #1a0f00; border: 1.5px solid var(--gagg-border);
  border-radius: var(--gagg-radius); padding: 10px 12px;
  cursor: pointer; transition: border-color .2s, background .2s;
  overflow: hidden; word-break: break-word;
}
.gagg-reg-option:hover { background: #2a1a00; border-color: var(--gagg-gold); }
.gagg-reg-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.gagg-reg-label { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.gagg-reg-label strong { font-size: .95em; color: #FFDFA3; white-space: normal; }
.gagg-reg-label em     { font-size: .82em; color: var(--gagg-gold); font-style: normal; white-space: normal; }

/* ── Posse checkboxes ────────────────────────────────────── */
.gagg-posse-roles { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.gagg-checkbox-label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.gagg-checkbox-label input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }
.gagg-checkbox-text { display: flex; flex-direction: column; line-height: 1.3; }
.gagg-checkbox-text strong { font-size: .95em; }
.gagg-checkbox-text small  { color: #B97900; font-size: .82em; }

/* ── Payment notice ──────────────────────────────────────── */
.gagg-payment-notice {
  background: #1a0f00; border: 2px solid var(--gagg-border);
  border-radius: var(--gagg-radius); padding: 16px 20px;
  margin-bottom: 20px; line-height: 1.7; font-size: .92em;
  color: #FFDFA3;
}

/* ── Waiver acknowledgment ───────────────────────────────── */
.gagg-waiver-wrap {
  margin: 24px 0 20px;
  padding: 18px 22px;
  background: #1a0800;
  border: 2px solid #c0392b;
  border-radius: var(--gagg-radius);
  box-shadow: 0 0 16px rgba(192,57,43,.35), inset 0 0 8px rgba(192,57,43,.1);
}
.gagg-waiver-label {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  line-height: 1.5;
}
.gagg-waiver-checkbox {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--gagg-gold);
  cursor: pointer;
}
.gagg-waiver-text {
  color: #FFDFA3;
  font-size: .97em;
}
.gagg-waiver-text strong {
  color: #ff6b6b;
  display: block;
  margin-bottom: 4px;
  font-size: 1em;
  letter-spacing: .03em;
}
.gagg-waiver-link {
  color: var(--gagg-gold);
  text-decoration: underline;
  font-weight: bold;
}
.gagg-waiver-link:hover { color: #FAAA14; }
.gagg-waiver-wrap.gagg-waiver-unchecked {
  border-color: #ff4444;
  box-shadow: 0 0 20px rgba(255,68,68,.5), inset 0 0 10px rgba(255,68,68,.15);
  animation: gagg-waiver-shake .35s ease;
}
.gagg-waiver-error {
  margin-top: 8px;
  margin-left: 36px;
  font-size: .88em;
  color: #ff6b6b;
  min-height: 1em;
}
@keyframes gagg-waiver-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

/* ── Submit button ───────────────────────────────────────── */
.gagg-submit-wrap { text-align: center; margin-top: 10px; }
.gagg-submit-btn {
  background: #B97900; color: #06080A;
  border: none; border-radius: 30px; padding: 14px 40px;
  font-family: 'Roboto Slab', Georgia, serif; font-size: 1.1em; font-weight: bold;
  cursor: pointer; transition: background .2s, transform .15s;
  box-shadow: 0 3px 10px rgba(0,0,0,.45);
  letter-spacing: 0.05em;
}
.gagg-submit-btn:hover    { background: #FAAA14; transform: translateY(-1px); }
.gagg-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Family member prompt ────────────────────────────────── */
.gagg-family-prompt { margin-bottom: 24px; }
.gagg-family-prompt-inner {
  display: flex; align-items: center; gap: 16px;
  background: #1a0f00; border: 2px dashed var(--gagg-border);
  border-radius: var(--gagg-radius); padding: 16px 20px; flex-wrap: wrap;
}
.gagg-family-icon { font-size: 2em; flex-shrink: 0; }
.gagg-family-prompt-inner > div { flex: 1 1 200px; }
.gagg-family-prompt-inner > div strong { display: block; font-size: 1em; color: #FAAA14; margin-bottom: 4px; }
.gagg-family-prompt-inner > div p { margin: 0; font-size: .88em; color: #FFDFA3; line-height: 1.4; }
.gagg-add-family-btn {
  background: #B97900; color: #06080A; border: none;
  border-radius: 20px; padding: 10px 20px; font-family: 'Roboto Slab', Georgia, serif;
  font-size: .9em; font-weight: bold; cursor: pointer; white-space: nowrap;
  transition: background .2s; flex-shrink: 0;
}
.gagg-add-family-btn:hover { background: #FAAA14; }

/* ── Family member blocks ────────────────────────────────── */
.gagg-family-member-wrap {
  border: 2px solid var(--gagg-gold); border-radius: var(--gagg-radius);
  margin-bottom: 24px; background: #130d04; overflow: hidden;
}
.gagg-family-header {
  display: flex; align-items: center; justify-content: space-between;
  background: #8B4513; color: #FFDFA3; padding: 10px 18px;
}
.gagg-family-header-title { font-weight: bold; font-size: .97em; }
.gagg-remove-family-btn {
  background: none; border: 1px solid rgba(255,255,255,.5); color: var(--gagg-light-gold);
  border-radius: 12px; padding: 4px 10px; font-size: .8em; cursor: pointer;
  font-family: Georgia, serif; transition: background .2s;
}
.gagg-remove-family-btn:hover { background: rgba(255,255,255,.2); }
.gagg-family-member-wrap .gagg-section {
  border: none; border-top: 1px solid var(--gagg-border);
  border-radius: 0; margin-bottom: 0; box-shadow: none;
}

/* ── Relationship row ────────────────────────────────────── */
.gagg-family-role-field { padding: 16px 24px 0; }
.gagg-family-role-field label {
  font-size: .88em; font-weight: bold; color: #FAAA14;
  margin-bottom: 4px; display: block;
}
.gagg-family-role-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.gagg-family-role-hint {
  font-size: .82em; color: #B97900; font-style: italic; white-space: nowrap;
}
.gagg-family-role-field select {
  border: 1.5px solid var(--gagg-border); border-radius: 5px;
  padding: 7px 10px; font-family: inherit; font-size: .95em;
  background: #1a0f00; color: #FFDFA3;
  max-width: 260px; display: block; box-sizing: border-box;
}
.gagg-family-role-field select:focus {
  outline: none;
  border-color: var(--gagg-gold);
  box-shadow: 0 0 0 3px rgba(200,134,10,.15);
}

/* ── Registration Closed screen ─────────────────────────── */
.gagg-closed-wrap {
  padding: 12px 0 40px;
}
.gagg-closed-hero {
  text-align: center;
  padding: 40px 20px 28px;
  border-bottom: 1px solid var(--gagg-border);
  margin-bottom: 0;
}
.gagg-closed-star {
  font-size: 3em;
  color: var(--gagg-gold);
  line-height: 1;
  margin-bottom: 12px;
  text-shadow: 0 0 20px rgba(250,170,20,.4);
}
.gagg-closed-title {
  font-family: 'Roboto Slab', Georgia, serif;
  font-size: 1.6em;
  color: #FFDFA3;
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}
.gagg-closed-sub {
  font-size: 1em;
  color: var(--gagg-gold);
  margin: 0;
  font-style: italic;
}
.gagg-closed-card {
  background: #130d04;
  border: 1.5px solid var(--gagg-border);
  border-top: none;
  border-radius: 0 0 var(--gagg-radius) var(--gagg-radius);
  padding: 28px 28px 32px;
  box-shadow: var(--gagg-shadow);
}
.gagg-closed-message {
  font-size: 1em;
  color: #FFDFA3;
  line-height: 1.7;
  margin: 0 0 24px;
  text-align: center;
}
.gagg-closed-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  padding: 20px;
  background: #1a0f00;
  border: 1px solid var(--gagg-border);
  border-radius: var(--gagg-radius);
}
.gagg-closed-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.gagg-closed-detail-icon {
  font-size: 1.3em;
  flex-shrink: 0;
  margin-top: 1px;
}
.gagg-closed-detail-item div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gagg-closed-detail-item strong {
  font-size: .82em;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gagg-gold);
}
.gagg-closed-detail-item span {
  font-size: .97em;
  color: #FFDFA3;
}
.gagg-closed-notify {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #0f0800;
  border: 2px dashed var(--gagg-border);
  border-radius: var(--gagg-radius);
}
.gagg-closed-notify-icon { font-size: 1.6em; flex-shrink: 0; }
.gagg-closed-notify p {
  margin: 0;
  font-size: .92em;
  color: #FFDFA3;
  line-height: 1.6;
}
.gagg-closed-notify a {
  color: var(--gagg-gold);
  text-decoration: underline;
}
.gagg-closed-notify a:hover { color: #FFDFA3; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .gagg-section { padding: 18px 16px 22px; }
  .gagg-row { gap: 10px; }
  .gagg-gender-btn { flex: 1 1 120px; padding: 14px 8px; }
  .gagg-reg-options { grid-template-columns: 1fr 1fr; }
  .gagg-family-prompt-inner { flex-direction: column; align-items: flex-start; }
  .gagg-address-row { flex-direction: column; }
  .gagg-field-city,
  .gagg-field-state,
  .gagg-field-zip { flex: 1 1 auto; min-width: 0; }
}
@media (max-width: 360px) {
  .gagg-reg-options { grid-template-columns: 1fr; }
}

/* ── Age bracket buttons (v2.9) ──────────────────────────── */
.gagg-age-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.gagg-age-btn {
  padding: 10px 18px;
  border: 2px solid #C8A44A;
  border-radius: 6px;
  background: #fff;
  color: #5a3e1b;
  font-size: 0.95em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  min-width: 90px;
  text-align: center;
}

.gagg-age-btn:hover {
  background: #fdf3dc;
  border-color: #a07810;
}

.gagg-age-btn.selected {
  background: #C8A44A;
  color: #fff;
  border-color: #a07810;
}

/* Breadcrumb age segment */
.gagg-bc-age {
  color: #D4A84B;
  font-weight: 600;
}

/* Younger category note (Shooting Style / Costume / BP) */
.gagg-cat-age-note {
  width: 100%;
  margin: 10px 0 2px;
  padding: 8px 12px;
  background: #1a0f00;
  border: 1px solid var(--gagg-border);
  border-radius: var(--gagg-radius);
  font-size: .82em;
  color: #C8A96E;
  font-style: italic;
  text-align: center;
}

/* ── Non-Shooter rows (v4.1) ─────────────────────────────── */
.gagg-nonshoooter-row {
  background: #fffef5;
  border: 1px solid #e8d9b0;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.gagg-ns-remove-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.gagg-ns-price {
  font-size: 0.82em;
  color: #7a5c1e;
  font-style: italic;
}

/* ── Title-case fields (v4.1.1) ──────────────────────────── */
input[data-title-case] {
  text-transform: capitalize;
}
/* email should NOT be capitalized visually */
input[type="email"] {
  text-transform: none !important;
}

/* ── Category collapse notice (v4.1.3) ───────────────────── */
.gagg-category-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff8e0;
  border: 1px solid #e8c840;
  border-left: 4px solid #c8a000;
  border-radius: 4px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 0.88em;
  color: #5a3e00;
  line-height: 1.5;
}

.gagg-category-notice-icon {
  flex-shrink: 0;
  font-size: 1.1em;
  margin-top: 1px;
}
