:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --gold: #c9a227;
  --gold-light: #e8c94a;
  --maroon: #7a1f2b;
  --bg-soft: #f6f7fb;
  --text-muted: #5d6b82;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--bg-soft);
  color: #1c2733;
}

.section-title {
  font-weight: 700;
  color: var(--navy);
}

.section-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy-dark);
  background-image: url("../img/bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
  padding: 5.5rem 0 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 12, 22, 0.85) 0%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.hero .chess-glyph {
  position: absolute;
  font-size: 9rem;
  opacity: 0.08;
  color: var(--gold-light);
  pointer-events: none;
  line-height: 1;
}

.hero .chess-glyph--left {
  left: -1.5rem;
  top: 1rem;
}

.hero .chess-glyph--right {
  right: -1rem;
  bottom: -1.5rem;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #fff;
  padding: 16px;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}

.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero .badge-event {
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 3rem);
}

.hero .lead {
  color: #d9e2f1;
}

.hero-info-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  padding: 0.85rem 1.1rem;
  backdrop-filter: blur(2px);
}

.hero-info-pill i {
  color: var(--gold-light);
  font-size: 1.25rem;
}

.btn-gold {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
}

.btn-gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
}

/* Entry Fee Section */
.entry-fee-section {
  background: #fffbeb;
  padding: 2.5rem 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.fee-card {
  background: #fff;
  border: 1px solid #e7e9f0;
  border-top-width: 4px;
  border-radius: 0.9rem;
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  box-shadow: 0 2px 12px rgba(11, 37, 69, 0.07);
}

.fee-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(11, 37, 69, 0.13);
}

.fee-card--a { border-top-color: #2563eb; }
.fee-card--b { border-top-color: #16a34a; }
.fee-card--c { border-top-color: #d97706; }

.fee-card__cat {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.65rem;
  color: #fff;
}

.fee-card--a .fee-card__cat { background: #2563eb; }
.fee-card--b .fee-card__cat { background: #16a34a; }
.fee-card--c .fee-card__cat { background: #d97706; }

.fee-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.fee-card__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.fee-card__amount--free {
  color: #15803d;
}

.fee-card__note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Tournament format */
.format-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.format-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px dashed #dfe3ec;
}

.format-list li:last-child {
  border-bottom: none;
}

.format-list i {
  color: var(--gold);
  font-size: 1.15rem;
  margin-top: 0.1rem;
}

.format-sublist {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.format-sublist li {
  display: list-item;
  padding: 0.15rem 0;
  border-bottom: none;
}

/* Food Coupon Notice (alert banner after Tournament Format) */
.food-notice-section {
  background: #c0392b;
  padding: 1.25rem 0;
}

.food-notice-box {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.food-notice-box__icon {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
  line-height: 1;
}

.food-notice-box__label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.2rem;
}

.food-notice-box__body {
  flex: 1;
  min-width: 0;
}

.food-notice-box__text {
  font-size: 0.9rem;
  color: #fff;
  margin: 0;
  line-height: 1.6;
}

.food-notice-box__text strong {
  color: #fde68a;
}

.food-notice-box__action {
  flex-shrink: 0;
}

.btn-food-notice {
  background: #fff;
  color: #c0392b;
  font-weight: 700;
  border: none;
  border-radius: 0.6rem;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-food-notice:hover {
  background: #fde68a;
  color: #7f1d1d;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .food-notice-box {
    flex-direction: column;
    text-align: center;
  }

  .food-notice-box__icon {
    display: none;
  }

  .food-notice-box__action {
    width: 100%;
  }

  .btn-food-notice {
    width: 100%;
  }
}

/* Food Coupon Registration Section */
.food-coupon-section {
  background: #fff8e8;
}

.coupon-ticket {
  position: relative;
  display: flex;
  max-width: 880px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: visible;
  box-shadow: 0 1.5rem 4rem rgba(11, 37, 69, 0.18);
}

.coupon-ticket__left {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-radius: 1.25rem 0 0 1.25rem;
  border-right: 2px dashed rgba(201, 162, 39, 0.45);
  position: relative;
}

.coupon-ticket__icon {
  font-size: 2.75rem;
  color: var(--gold-light);
  margin-bottom: 0.6rem;
  line-height: 1;
}

.coupon-ticket__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a0aec0;
  margin-bottom: 0.85rem;
}

.coupon-ticket__price {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold-light);
}

.coupon-ticket__per {
  font-size: 0.78rem;
  font-weight: 500;
  color: #a0aec0;
  margin-top: 0.2rem;
  margin-bottom: 1.25rem;
}

.coupon-ticket__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
}

/* Punch-out notch circles at the tear line */
.coupon-notch {
  position: absolute;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff8e8; /* matches section bg */
  left: calc(220px - 0.75rem);
  z-index: 3;
  border: 2px dashed rgba(201, 162, 39, 0.45);
}

.coupon-notch--top {
  top: -0.75rem;
}

.coupon-notch--bottom {
  bottom: -0.75rem;
}

.coupon-ticket__right {
  flex: 1;
  background: #fff;
  border-radius: 0 1.25rem 1.25rem 0;
  padding: 2.25rem 2rem;
}

.coupon-ticket__desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.coupon-ticket__desc strong {
  color: var(--navy);
}

.coupon-ticket__features {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 0.5rem;
}

.coupon-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.coupon-feature__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: #fff8e8;
  border: 1px solid #f0dda0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  font-size: 1.05rem;
}

.coupon-feature div {
  display: flex;
  flex-direction: column;
}

.coupon-feature strong {
  color: var(--navy);
  font-size: 0.875rem;
  line-height: 1.3;
}

.coupon-feature span {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.btn-coupon-cta {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: 0.6rem;
  transition: background 0.2s;
}

.btn-coupon-cta:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

/* Guest option radio group in form */
.guest-option-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: #fffdf6;
  border: 2px dashed var(--gold);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

/* Prize Pool Banner */
.prize-pool-banner {
  background: linear-gradient(135deg, #b8891a 0%, #f0c93b 45%, #b8891a 100%);
  border-radius: 1.25rem;
  padding: 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(201, 162, 39, 0.35);
}

.prize-pool-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -8%;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.prize-pool-banner::after {
  content: '';
  position: absolute;
  bottom: -60%;
  left: -5%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.prize-pool-banner__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--navy-dark);
  margin-bottom: 0.35rem;
  position: relative;
}

.prize-pool-banner__amount {
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1;
  position: relative;
}

.prize-pool-banner__plus {
  font-size: 55%;
  vertical-align: super;
}

.prize-pool-banner__sub {
  font-size: 0.88rem;
  color: rgba(7, 26, 51, 0.75);
  margin-top: 0.45rem;
  font-weight: 600;
  position: relative;
}

/* Category section label (sits above rank cards) */
.cat-section-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.92rem;
}

.cat-section-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

/* Rank Cards — gold / silver / bronze */
.rank-card {
  border-radius: 1.25rem;
  padding: 2rem 1.25rem 1.6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.rank-card:hover {
  transform: translateY(-8px);
}

.rank-card--gold {
  background: linear-gradient(160deg, #2b1d08 0%, #3e2c0e 100%);
  border: 2px solid #c9a227;
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.28);
}

.rank-card--gold:hover {
  box-shadow: 0 14px 40px rgba(201, 162, 39, 0.42);
}

.rank-card--silver {
  background: linear-gradient(160deg, #181f2c 0%, #222d40 100%);
  border: 2px solid #8a96b2;
  box-shadow: 0 6px 28px rgba(138, 150, 178, 0.15);
}

.rank-card--silver:hover {
  box-shadow: 0 14px 40px rgba(138, 150, 178, 0.28);
}

.rank-card--bronze {
  background: linear-gradient(160deg, #20140a 0%, #2e1d0e 100%);
  border: 2px solid #b87333;
  box-shadow: 0 6px 28px rgba(184, 115, 51, 0.18);
}

.rank-card--bronze:hover {
  box-shadow: 0 14px 40px rgba(184, 115, 51, 0.32);
}

.rank-card__position {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.rank-card--gold .rank-card__position { color: #f5c84a; }
.rank-card--silver .rank-card__position { color: #b2bdd6; }
.rank-card--bronze .rank-card__position { color: #d4924a; }

.rank-card__position sup {
  font-size: 1.2rem;
  margin-left: 0.05rem;
}

.rank-card__rank-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 0.75rem;
}

.rank-card--gold .rank-card__rank-label { color: rgba(245, 200, 74, 0.65); }
.rank-card--silver .rank-card__rank-label { color: rgba(178, 189, 214, 0.65); }
.rank-card--bronze .rank-card__rank-label { color: rgba(212, 146, 74, 0.65); }

.rank-card__divider {
  width: 40px;
  height: 2px;
  margin: 0 auto 0.9rem;
}

.rank-card--gold .rank-card__divider { background: rgba(201, 162, 39, 0.45); }
.rank-card--silver .rank-card__divider { background: rgba(138, 150, 178, 0.35); }
.rank-card--bronze .rank-card__divider { background: rgba(184, 115, 51, 0.4); }

.rank-card__amount {
  font-size: 1.85rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.rank-card__label {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.38);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}

.rank-card__icon {
  font-size: 1.35rem;
  margin-top: 1rem;
}

.rank-card--gold .rank-card__icon { color: #f5c84a; }
.rank-card--silver .rank-card__icon { color: #b2bdd6; }
.rank-card--bronze .rank-card__icon { color: #d4924a; }

/* Age group badges for Category C */
.prize-card__age-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.age-badge {
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: 2rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Prizes & Facilities */
.prizes-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  padding-bottom: 3rem;
}

.prizes-section .section-eyebrow {
  color: var(--gold-light);
}

.prizes-section .section-title {
  color: #fff;
}

.prizes-section__subtitle {
  color: #c8d2e3;
}

/* Category prize cards */
.prize-cat-card {
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(11, 37, 69, 0.14);
  transition: transform 0.25s, box-shadow 0.25s;
}

.prize-cat-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 44px rgba(11, 37, 69, 0.22);
}

.prize-cat-card--a { --card-accent: #1d4ed8; }
.prize-cat-card--b { --card-accent: #15803d; }
.prize-cat-card--c { --card-accent: #b45309; }

.prize-cat-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.5rem;
  color: #fff;
}

.prize-cat-card--a .prize-cat-card__header {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
}

.prize-cat-card--b .prize-cat-card__header {
  background: linear-gradient(135deg, #14532d 0%, #16a34a 100%);
}

.prize-cat-card--c .prize-cat-card__header {
  background: linear-gradient(135deg, #78350f 0%, #d97706 100%);
}

.prize-cat-card__badge {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.45);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.prize-cat-card__cat-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.8;
  margin-bottom: 0.15rem;
}

.prize-cat-card__title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
}

.prize-cat-card__body {
  background: #fff;
  padding: 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prize-cat-card__rank-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f0f2f7;
  font-size: 0.88rem;
  color: #374151;
}

.prize-cat-card__rank-item--last {
  border-bottom: none;
}

.prize-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  line-height: 1;
}

.prize-rank-badge--gold   { background: #fef9c3; color: #854d0e; border: 1.5px solid #fde047; }
.prize-rank-badge--silver { background: #f1f5f9; color: #475569; border: 1.5px solid #cbd5e1; }
.prize-rank-badge--bronze { background: #fff7ed; color: #9a3412; border: 1.5px solid #fdba74; }

.prize-cat-card__amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.prize-cat-card__pool {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #15803d;
  background: #f0fdf4;
  border-radius: 0.6rem;
  padding: 0.55rem 0.75rem;
  text-align: center;
  border: 1px solid #bbf7d0;
}

.prize-cat-card__note {
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.prize-cat-card__note i {
  color: #d97706;
}

.prize-cat-card__ages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.prize-cat-card__ages span {
  background: #fff7ed;
  color: #92400e;
  border: 1px solid #fcd34d;
  border-radius: 2rem;
  padding: 0.22rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.prize-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.prize-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.prize-card__badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.prize-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.prize-card__desc {
  font-size: 0.85rem;
  color: #c8d2e3;
  margin-bottom: 0.85rem;
}

.prize-card__prize {
  font-weight: 600;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.prize-card__prize i {
  margin-right: 0.4rem;
}

.prize-card__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.prize-card__list li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.9rem;
}

.prize-card__list li:last-child {
  border-bottom: none;
}

.prize-card__list strong {
  color: var(--gold-light);
}

.prizes-amenities {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.prizes-amenities__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #fff;
}

.prizes-amenities__title i {
  color: var(--gold-light);
}

.amenity-item {
  text-align: center;
}

.amenity-item i {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--gold-light);
  font-size: 1.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}

.amenity-item span {
  font-weight: 600;
  font-size: 0.88rem;
  color: #c8d2e3;
  display: block;
}

/* Registration form card */
.registration-card {
  border: none;
  border-radius: 1.25rem;
  box-shadow: 0 1rem 3rem rgba(11, 37, 69, 0.1);
  overflow: hidden;
}

.registration-card .card-header {
  background: var(--navy);
  color: #fff;
  padding: 1.5rem 2rem;
  border-bottom: 4px solid var(--gold);
}

.registration-card .card-body {
  padding: 2rem;
}

.form-label {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

.form-control,
.form-select {
  border-radius: 0.6rem;
  border-color: #d6dbe6;
  padding: 0.6rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(201, 162, 39, 0.2);
}

/* Category selection cards inside the form */
.category-select .category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  border: 2px solid #e2e6ef;
  border-radius: 0.9rem;
  padding: 1.25rem 1rem;
  text-align: center;
  height: 100%;
  transition: all 0.2s;
  background: #fff;
}

.category-select .category-card:hover {
  border-color: var(--gold);
}

.category-radio:checked + .category-card {
  border-color: var(--gold);
  background: #fffaf0;
  box-shadow: 0 0.5rem 1.25rem rgba(201, 162, 39, 0.25);
}

.category-radio:focus-visible + .category-card {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.category-card__badge {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.category-card__title {
  font-weight: 600;
  color: var(--navy);
}

.category-card__fee {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 1rem;
}

.category-card__fee--free {
  background: #e6f6ec;
  color: #1c8a4c;
}

.category-card__fee--paid {
  background: #fbe9ea;
  color: var(--maroon);
}

.category-card__note {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.3;
  margin: 0;
}

.category-card__fee--guest {
  background: #e8f0ff;
  color: #1a4b99;
}

/* Gender toggle */
.btn-gender {
  border: 2px solid #1c2733;
  border-radius: 0.6rem;
  color: #1c2733;
  background: #fff;
  font-weight: 600;
}

.btn-gender:hover {
  border-color: var(--gold);
  color: #1c2733;
}

.gender-select .btn-check:checked + .btn-gender {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #1c2733;
}

/* Payment box */
.payment-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5rem;
  border: 2px dashed var(--gold);
  border-radius: 1rem;
  padding: 1.5rem;
  background: #fffdf6;
}

.payment-box__qr {
  flex-shrink: 0;
}

.payment-box__qr img {
  width: 200px;
  height: auto;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0.5rem;
  padding: 0.4rem;
  display: block;
}

.payment-box__details {
  flex: 1;
  text-align: left;
}

/* Validation feedback */
.invalid-feedback {
  display: block;
  font-size: 0.82rem;
}

.is-invalid {
  border-color: #dc3545 !important;
}

/* Success panel */
.success-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.success-panel .success-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #e6f6ec;
  color: #1c8a4c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

/* Submit button */
#submitBtn {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.7rem;
}

#submitBtn:hover,
#submitBtn:focus,
#submitBtn:active {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  color: #fff;
}

#submitBtn:disabled {
  color: #fff;
  opacity: 0.85;
}

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: #fff;
  font-weight: 600;
}

.btn-outline-navy:hover,
.btn-outline-navy:focus,
.btn-outline-navy:active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* QR Code registration section */
.qr-box {
  display: inline-block;
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 1.25rem;
  padding: 1.25rem 1.25rem 0.75rem;
  box-shadow: 0 0.75rem 2rem rgba(201, 162, 39, 0.2);
}

.qr-box__img {
  display: block;
  width: 220px;
  height: 220px;
  border-radius: 0.5rem;
}

.qr-box__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 0.6rem;
  padding-bottom: 0.25rem;
  text-align: center;
}

.qr-site-link {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1rem;
  transition: color 0.2s;
}

.qr-site-link:hover {
  color: var(--gold);
}

.ls-wide {
  letter-spacing: 0.08em;
}

#qrOpenBtn {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 700;
  border-radius: 0.7rem;
}

#qrOpenBtn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy-dark);
}

/* Contact / organizer */
.organizer-section {
  background: #fff;
  border-top: 1px solid #e7e9f0;
  border-bottom: 1px solid #e7e9f0;
}

.organizer-section .organizer-name {
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.03em;
}

.contact-card {
  background: var(--bg-soft);
  border-radius: 1rem;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  height: 100%;
}

.contact-card__photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 4px solid var(--gold);
  flex-shrink: 0;
  margin-bottom: 0.5rem;
  box-shadow: 0 0.5rem 1.25rem rgba(11, 37, 69, 0.15);
}

.contact-card__name {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.1rem;
}

.contact-card i {
  font-size: 1rem;
  color: var(--gold);
}

.contact-card a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer.site-footer {
  background: var(--navy-dark);
  color: #c8d2e3;
  padding: 2rem 0 1.25rem;
}

footer.site-footer .powered-by {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.25rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #8b97ad;
}

footer.site-footer .powered-by a {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
}

footer.site-footer .powered-by a:hover {
  text-decoration: underline;
}

/* jQuery UI Datepicker theme overrides */
#birthDate {
  background-color: #fff;
  cursor: pointer;
}

.ui-datepicker {
  border-radius: 0.75rem;
  border: 1px solid #e2e6ef;
  box-shadow: 0 0.75rem 1.5rem rgba(11, 37, 69, 0.18);
  font-family: "Poppins", "Segoe UI", sans-serif;
  padding: 0.75rem;
  z-index: 2000 !important;
}

.ui-datepicker .ui-datepicker-header {
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 0.5rem;
}

.ui-datepicker .ui-datepicker-prev,
.ui-datepicker .ui-datepicker-next {
  cursor: pointer;
  color: #fff;
}

.ui-datepicker .ui-datepicker-title select {
  border-radius: 0.3rem;
  font-weight: 600;
  padding: 0.1rem 0.3rem;
}

.ui-datepicker td a,
.ui-datepicker td span {
  text-align: center;
  border-radius: 0.4rem;
}

.ui-datepicker .ui-state-active,
.ui-datepicker .ui-state-hover {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: #1c2733 !important;
}

.ui-datepicker .ui-datepicker-today a {
  border: 1px solid var(--gold);
}

@media (max-width: 767.98px) {
  html,
  body {
    overflow-x: hidden;
  }

  /* Ticket stacks vertically on mobile */
  .coupon-ticket {
    flex-direction: column;
  }

  .coupon-ticket__left {
    width: 100%;
    border-radius: 1.25rem 1.25rem 0 0;
    border-right: none;
    border-bottom: 2px dashed rgba(201, 162, 39, 0.45);
    padding: 1rem 1.25rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.2rem 0.6rem;
    text-align: center;
  }

  .coupon-ticket__icon {
    display: none;
  }

  /* Label: full width, sits at top */
  .coupon-ticket__label {
    flex-basis: 100%;
    order: 1;
    text-align: center;
    margin-bottom: 0.1rem;
  }

  /* Price and per sit side by side in middle row */
  .coupon-ticket__price {
    font-size: 2rem;
    order: 2;
    line-height: 1.1;
  }

  .coupon-ticket__per {
    order: 3;
    margin-bottom: 0;
    align-self: flex-end;
    padding-bottom: 0.15rem;
  }

  /* Badge: full width at bottom */
  .coupon-ticket__badge {
    flex-basis: 100%;
    order: 4;
    justify-content: center;
    margin-top: 0.5rem;
  }

  .coupon-ticket__right {
    border-radius: 0 0 1.25rem 1.25rem;
  }

  .coupon-notch {
    display: none;
  }

  .registration-card .card-body {
    padding: 1.25rem;
  }

  .prize-pool-banner {
    padding: 1.5rem 1.25rem;
  }

  .prize-pool-banner__amount {
    font-size: 2.8rem;
  }

  .rank-card {
    padding: 1.5rem 0.75rem 1.25rem;
  }

  .rank-card__position {
    font-size: 2.25rem;
  }

  .rank-card__amount {
    font-size: 1.5rem;
  }

  .cat-section-label {
    font-size: 0.82rem;
  }

  .payment-box {
    flex-direction: column;
    align-items: center;
  }

  .payment-box__qr img {
    width: 220px;
    margin: 0 auto;
  }

  .payment-box__details {
    width: 100%;
  }

  .hero {
    background-image: url("../img/mobile-bg.png");
    background-size: cover;
    background-position: top center;
  }
}
