/* ===== Global Theme: Green & Gold ===== */
:root{
  --green-dark:#1e3d3f;
  --green:#2f5f37;
  --mint:#a8d5ba;
  --gold:#d4af37;
  --paper:#f5faf7;
  --ink:#1e3d3f;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--paper);
  color:var(--ink);
  line-height:1.55;
}
a{color:var(--green);text-decoration:none}

/* ===== Hero (shared for both pages) ===== */
.hero{
  position:relative;
  min-height:52vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  text-align:center;
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.45));
}
.hero-overlay,
.hero-center{ position:relative; z-index:1; color:#fff; padding:24px; }
.hero h1{ margin:.2rem 0 .4rem; font-size:clamp(1.8rem,3.5vw,2.8rem); }
.hero p{ margin:0; opacity:.95; }
.hero-logo{ width:120px; height:auto; margin:0 auto 10px; display:block; filter:drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.hero-logo-sm{ width:80px; height:auto; margin:0 auto 8px; display:block; filter:drop-shadow(0 6px 16px rgba(0,0,0,.35)); }

/* Backgrounds */
.hero{ background:url('clubphoto1.jpg') center/cover no-repeat; }          /* index default */
.hero.competition{ background:url('GHCC1.jpg') center/cover no-repeat; }   /* competition */

/* ===== Sticky Navbar (shared) ===== */
/* ===== Responsive Smart Navbar (Centered Desktop + Scrollable Mobile) ===== */
/* ===== Fix Navbar: single row with horizontal scroll on small devices ===== */
.navbar {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  overflow-x: auto;              /* enables horizontal scroll */
  white-space: nowrap;           /* prevent wrapping */
  scrollbar-width: none;         /* hide scrollbar (Firefox) */
  -ms-overflow-style: none;      /* hide scrollbar (Edge/IE) */
  background: #ffffffd2;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 10px 12px;
  scroll-behavior: smooth;
}

/* Center navbar on large screens */
@media (min-width: 900px) {
  .navbar {
    justify-content: center;   /* center tabs when there’s enough space */
    overflow-x: visible;       /* no horizontal scroll needed on desktop */
  }
}


/* Hide scrollbar for WebKit (Chrome, Safari) */
.navbar::-webkit-scrollbar {
  display: none;
}

/* Make buttons inline and neat */
.tablink {
  display: inline-block;
  border: 1px solid rgba(0,0,0,.1);
  background: #fff;
  padding: 10px 18px;              /* a little more breathing space */
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;                 /* increased font size */
  color: var(--ink);
  cursor: pointer;
  transition: background .15s, color .15s, transform .05s;
  white-space: nowrap;
}

.tablink:hover {
  transform: translateY(-1px);
}
.tablink.active {
  background: var(--gold);
  color: #fff;
  border-color: transparent;
}

/* Swipe hint styling */
.swipe-hint {
  text-align: right;
  color: var(--green);
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 6px 16px 0 0;
}

/* Hide swipe hint on large screens */
@media (min-width: 900px) {
  .swipe-hint {
    display: none;
  }
}


<span class="swipe-hint">← Swipe →</span>


/* ===== Content blocks (shared) ===== */
.tab-content{ max-width:960px; margin:28px auto; padding:0 20px; display:none; }
.tab-content.active{ display:block; }
.tab-content h2{ margin:0 0 10px; color:var(--green); }
.tab-content ul{ padding-left:1.1rem; }

/* ===== Buttons (shared) ===== */
.button{ display:inline-block; padding:10px 16px; background:var(--mint); color:var(--ink);
  border-radius:10px; font-weight:700; border:2px solid rgba(0,0,0,.75); transition:filter .2s; }
.button:hover{ filter:brightness(.95); }
.button.gold{ background:var(--gold); color:#fff; border-color:transparent; }

/* ===== Utilities & site chrome ===== */
.container{ max-width:960px; margin:0 auto; padding:0 20px; }
footer{ margin-top:36px; background:#fff; border-top:1px solid rgba(0,0,0,.06); text-align:center; padding:14px 16px; color:var(--ink); }

/* Back & account links (shared) */
.back-button{
  position:fixed; top:18px; left:18px; z-index:10000;
  background:var(--mint); color:var(--ink); padding:10px 14px; border-radius:10px; font-weight:700;
}
.back-button:hover{ background:var(--gold); color:#fff; }
.top-right-links{
  position:fixed; top:18px; right:18px; z-index:10000; font-weight:700;
}
.top-right-links a{ padding:5px 8px; border-radius:8px; }
.top-right-links a:hover{ background:var(--gold); color:#fff; }

/* ===== Competition-only components ===== */
/* === Home Layout === */
#home {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 40px;
  text-align: left;
}

/* Headings */
#home h2 {
  color: var(--green);
  font-size: 2rem;
  font-weight: 800;
  border-left: 6px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 1.2rem;
}

#home h3, #home .subhead {
  color: var(--gold);
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
}

/* Paragraphs */
#home p {
  font-size: 1.06rem;
  line-height: 1.8;
  color: #1e3d3f;
  margin-bottom: 1rem;
  text-align: justify;
}

/* Highlight Callout */
.highlight-box {
  background: linear-gradient(135deg, #ffffff 40%, #f7fdf9);
  border-left: 5px solid var(--gold);
  border-radius: 12px;
  padding: 20px 25px;
  margin: 25px 0 35px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.highlight-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* === Scroll Gallery === */
.scroll-gallery {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding: 14px 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.scroll-gallery img {
  flex: 0 0 auto;
  width: 100%;
  max-width: 700px;
  height: 340px;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.scroll-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.scroll-gallery::-webkit-scrollbar { display: none; }

.scroll-hint {
  text-align: center;
  color: var(--green);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 6px;
  opacity: 0.8;
}

/* === Key Features === */
.key-features ul {
  list-style: none;
  padding-left: 0;
}
.key-features li {
  background: #ffffff;
  border-left: 4px solid var(--green);
  margin: 10px 0;
  padding: 12px 16px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}
.key-features li:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0,0,0,0.08);
}




.about-card {
  background: #f9f9f9;
  border-left: 4px solid #27ae60;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.about-card h3 {
  color: #27ae60;
  margin-bottom: 10px;
}


.competition-page .gate{
  background:#fff9e6; border:1px solid #ffd27f; padding:12px; border-radius:8px; margin:16px 0;
}
.competition-page .reg-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:16px 20px; background:#fff;
  border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:18px; box-shadow:0 4px 14px rgba(0,0,0,.06);
}
.competition-page .field label{ display:block; margin-bottom:8px; font-weight:600; color:var(--green); }
.competition-page .field input,.competition-page .field textarea{ width:100%; padding:10px; border:1px solid #cfd6cf; border-radius:8px; font-size:1rem; background:#fff; }
.competition-page .field.full{ grid-column:1 / -1; }
.competition-page .actions{ grid-column:1 / -1; }
.muted{ color:#6b6b6b; } .small{ font-size:.9rem; }
.form-message{ margin-top:10px; font-weight:700; }
.receipt{ margin-top:10px; padding:12px; border-left:4px solid var(--mint); background:#fff; border-radius:6px; box-shadow:0 2px 8px rgba(0,0,0,.04); }

/* === FIX: Align Data Policy checkbox & text === */
.competition-page .consent {
  grid-column: 1 / -1;             /* span full width */
  display: flex;
  justify-content: center;         /* center horizontally */
  align-items: flex-start;         /* align checkbox with text top */
  text-align: center;
  margin-top: 12px;
  margin-bottom: 24px;
  padding: 0 16px;
  flex-wrap: wrap;                 /* wrap nicely on small screens */
}

data label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
  font-weight: 500;
  color: var(--green);
  line-height: 1.4;
}
/* === FINAL FIX: Perfect alignment for consent checkbox + text === */
.competition-page .consent {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;        /* Center horizontally */
  align-items: center;            /* Align vertically */
  margin-top: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.competition-page .consent label {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;                       /* perfect spacing between checkbox and text */
  font-weight: 500;
  color: var(--green);
  line-height: 1.5;
}

.competition-page .consent input[type="checkbox"] {
  transform: scale(1.2);
  accent-color: var(--green);
  cursor: pointer;
  margin: 0;                      /* remove stray offset */
}

.competition-page .consent a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}

.competition-page .consent a:hover {
  text-decoration: underline;
}

/* Mobile: stack neatly if screen is narrow */
@media (max-width: 600px) {
  .competition-page .consent label {
    flex-direction: column;
    gap: 6px;
  }
}


#activities {
  padding: 40px 20px;
}

#activities h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #2c3e50;
}


/* === Timeline Section (Elegant Green Theme) === */
.timeline {
  position: relative;
  margin: 30px auto;
  max-width: 900px;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--green), #4CAF50);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.25);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: #4CAF50;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.25);
}

.timeline-date {
  font-weight: 700;
  color: var(--green);
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.timeline-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  border-left: 5px solid #4CAF50;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
  margin-top: 0;
  color: #2e7d32;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-content p {
  color: #1e3d3f;
  line-height: 1.65;
  margin: 0 0 6px;
}


/* Optional: subtle line glow for a modern premium touch */
.timeline::before {
  box-shadow: 0 0 12px rgba(236, 52, 83, 0.25);
}




.about-card.waiting {
  border-left-color: var(--gold);
  background: #fffbe8;
}

.about-card.waiting p {
  color: #8a6d1b;
  font-weight: 600;
}

.button.gold:hover {
  background: #e3c456;
  filter: brightness(1.05);
}

#contact a {
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
#contact a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Account cards */
.competition-page .account-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:28px; align-items:start; }
.competition-page .card{ background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:16px; box-shadow:0 8px 24px rgba(0,0,0,.06); padding:22px; }
.competition-page .auth-form label{ font-weight:600; margin-bottom:6px; display:block; }
.competition-page .auth-form input{ width:100%; padding:12px; border:1px solid #D5DED5; border-radius:12px; font-size:1rem; background:#fff; margin-bottom:12px; }

/* Account Page Enhancements */
.competition-page .account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.competition-page .card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  padding: 22px;
  transition: all 0.2s ease;
}

.competition-page .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
}

.competition-page .card h3 {
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.competition-page .auth-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #cfd6cf;
  border-radius: 8px;
  font-size: 1rem;
}

.competition-page .auth-form button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.competition-page .auth-form button:hover {
  background: #e3c456;
}


/* FAQ Section Styling */
#faq {
  max-width: 900px;
}

.faq-intro {
  background: #f9f9f9;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.competition-page details.faq {
  background: #ffffff;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.competition-page details.faq:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}

.competition-page details.faq summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  color: var(--green);
  font-size: 1.05rem;
  position: relative;
  padding-left: 25px;
}

.competition-page details.faq summary::before {
  content: "❓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: 1.1rem;
}

.competition-page details.faq[open] summary {
  color: var(--gold);
}

.competition-page details.faq p {
  margin-top: 8px;
  line-height: 1.6;
  color: #333;
}


.bullet-paragraphs p {
  position: relative;
  padding-left: 20px;
}

.bullet-paragraphs p::before {
  content: "•";             /* bullet symbol */
  position: absolute;
  left: 0;
  color: #333;              /* bullet color */
  font-weight: bold;
}

/* Responsive */
@media (max-width:900px){
  .hero{ min-height:44vh; }
  .competition-page .reg-grid{ grid-template-columns:1fr; }
  .competition-page .account-grid{ grid-template-columns:1fr; }
}


/* ======= Shared theme & components (Index + Competition) ======= */
:root{
  --green-dark:#1e3d3f;
  --green:#2f5f37;
  --mint:#a8d5ba;
  --gold:#d4af37;
  --paper:#f5faf7;
  --ink:#1e3d3f;
}
/* Ensure competition page inherits same palette */
.competition-page{
  --green-dark:#1e3d3f;
  --green:#2f5f37;
  --mint:#a8d5ba;
  --gold:#d4af37;
  --paper:#f5faf7;
  --ink:#1e3d3f;
}

/* Shared hero pieces */
.hero{ position:relative; min-height:52vh; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.hero-overlay{ position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,.25),rgba(0,0,0,.45)); }
.hero .hero-overlay{ display:grid; place-content:center; text-align:center; color:#fff; padding:24px; }
.hero-logo{ width:120px; height:auto; margin:0 auto 10px; filter:drop-shadow(0 6px 16px rgba(0,0,0,.35)); }
.hero h1{ margin:.2rem 0 .4rem; font-size:clamp(1.8rem,3.5vw,2.6rem); }
.hero p{ margin:0; opacity:.95; }

/* Shared navbar (pill, scrollable on mobile) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #ffffffd2;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 10px 12px;
}

.navbar::-webkit-scrollbar {
  display: none;
}

.tablink{
  border:1px solid rgba(0,0,0,.1); background:#fff; padding:8px 14px;
  border-radius:999px; font-weight:700; color:var(--ink);
  cursor:pointer; transition:background .15s, color .15s, transform .05s;
}
.tablink:hover{ transform:translateY(-1px); }
.tablink.active, .tablink:hover{ background:var(--gold); color:#fff; border-color:transparent; }

/* Shared content container */
.tab-content{ max-width:960px; margin:28px auto; padding:0 20px; display:none; }
.tab-content.active{ display:block; }
.tab-content h2{ margin:0 0 10px; color:var(--green); }

/* Shared button + footer */
.button{ display:inline-block; padding:10px 16px; background:var(--mint); color:var(--ink);
  border-radius:10px; font-weight:700; border:2px solid rgba(0,0,0,.75); text-decoration:none; transition:filter .2s; }
.button:hover{ filter:brightness(.95); }

.site-footer, footer{
  background:#fff; border-top:1px solid rgba(0,0,0,.06); text-align:center; padding:14px 16px; color:var(--ink);
}

/* Shared back + account links */
.back-button{
  position:fixed; top:18px; left:18px; z-index:10000;
  background:var(--mint); color:var(--ink); padding:10px 14px; border-radius:10px; font-weight:700; text-decoration:none;
}
.back-button:hover{ background:var(--gold); color:#fff; }
.top-right-links{ position:fixed; top:18px; right:18px; z-index:10000; font-weight:700; }
.top-right-links a{ padding:5px 8px; border-radius:8px; color:var(--ink); text-decoration:none; }
.top-right-links a:hover{ background:var(--gold); color:#fff; }

/* Competition hero background to match pattern */
.hero.competition{ background:url('GHCC1.jpg') center/cover no-repeat; }

/* Contact form styles to match account inputs */
.competition-page .contact-form label {
  display:block;
  margin:8px 0 6px;
  font-weight:600;
}
.competition-page .contact-form input,
.competition-page .contact-form textarea {
  width:100%;
  padding:12px;
  border:1px solid #D5DED5;
  border-radius:12px;
  font-size:1rem;
  background:#fff;
  margin-bottom:12px;
}

/* ===== Auto-Scroll Gallery (No Fade-in) ===== */
.scroll-gallery {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.scroll-track {
  display: flex;
  width: max-content;
  animation: scrollLoop 60s linear infinite;
}

.scroll-track img {
  width: 700px;
  height: 340px;
  object-fit: cover;
  margin-right: 12px;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.scroll-track img:hover {
  transform: scale(1.03);
}

@keyframes scrollLoop {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* scroll halfway because images duplicated */
}


.hero.competition {
  background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.35)),
              url('GHCC1.jpg') center 0px/cover no-repeat;
  background-attachment: fixed;
}

/* === Fix top-right account text alignment === */
.top-right-links {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 10000;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.top-right-links span,
.top-right-links a {
  color: var(--green-dark);
  text-decoration: none;
  white-space: nowrap;
}

.top-right-links a:hover {
  color: var(--gold);
  text-decoration: underline;
}

#policy h2 {
  color: var(--green);
  margin-bottom: 24px;
  border-left: 6px solid var(--gold);
  padding-left: 12px;
}

#policy .about-card {
  background: #fff;
  border-left: 4px solid var(--green);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
}

#policy .about-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.phone-input {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-icon {
  font-size: 1.3rem;
  color: var(--green);
}

/* ===== Responsive Fix for Registration Form ===== */
@media (max-width: 768px) {
  .competition-page .reg-grid {
    grid-template-columns: 1fr;       /* Stack fields vertically */
    padding: 14px;                    /* Prevent overflow edges */
    gap: 14px;                        /* Reduce spacing for smaller screens */
  }

  .competition-page .field input,
  .competition-page .field textarea {
    width: 100%;                      /* Keep inputs inside the box */
    box-sizing: border-box;
  }

  .competition-page .field {
    margin-bottom: 10px;              /* Consistent spacing */
  }

  .competition-page .actions {
    grid-column: 1 / -1;
    text-align: center;               /* Center the submit button */
  }

  .competition-page .reg-form {
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden;                 /* Clip overflow */
  }
}

/* ===== Extra safety for very small screens (iPhone SE width) ===== */
@media (max-width: 420px) {
  .competition-page .reg-form {
    padding: 10px;
  }

  .competition-page .field label {
    font-size: 0.9rem;
  }

  .competition-page .button {
    width: 100%;
  }
}

/* Ensure form area doesn't touch screen edges */
form {
  padding: 0 16px; /* Adds space on left and right */
  box-sizing: border-box;
}

/* Optional: make the whole form card nicely spaced on mobile */
.form-card {
  margin: 10px auto;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 600px;
}

/* Ensure input boxes don’t stretch too wide */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* On smaller screens, give consistent margin around edges */
@media (max-width: 768px) {
  .form-card {
    margin: 12px;
    padding: 16px;
  }
}

/* Fix right-side gap issue on mobile */
.section, .card, .form-card, form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Ensure inputs scale correctly inside the container */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

/* Prevent horizontal overflow on mobile */
body {
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Center navbar on large screens only */
@media (min-width: 900px) {
  .navbar {
    justify-content: center;
    overflow-x: visible;  /* disables horizontal scroll when centered */
  }
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  width: 100%;
  box-sizing: border-box;
}

/* === FIX: Keep full card width on desktop but prevent edge clipping on mobile === */

/* Main registration grid (desktop) */
.competition-page .reg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: 30px 40px; /* desktop padding */
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  max-width: 900px;
  margin: 0 auto; /* center on large screens */
}

/* Fields inside the grid */
.competition-page .field input,
.competition-page .field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #cfd6cf;
  border-radius: 8px;
  font-size: 1rem;
  background: #fff;
}

/* On mobile: add safe padding and ensure no clipping */
@media (max-width: 900px) {
  .competition-page .reg-grid {
    grid-template-columns: 1fr;   /* stack */
    padding: 20px 18px;           /* tighter inner padding */
    margin: 0 10px;               /* gap from screen edge */
  }
}

/* On very small screens: slightly more breathing room */
@media (max-width: 480px) {
  .competition-page .reg-grid {
    padding: 18px 14px;
    margin: 0 8px;
  }
}

/* === FINAL: consent checkbox + text centered as one unit === */
.competition-page .field.full.consent{
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 16px;
  margin: 14px 0 20px;
  text-align: center;
}

.receipt .small {
  font-size: 0.9rem;
  color: #3c4c3e;
  margin-top: 6px;
}

.receipt .muted strong {
  color: var(--gold);
}


.back-button {
  display: none !important;
}
