/* ============================================================
   DG – Public Stylesheet
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --primary:         #000000;
  --primary-light:   #424242;
  --primary-dark:    #000000;
  --secondary:       #00897b;
  --secondary-light: #4ebaaa;
  --secondary-dark:  #005b4f;
  --accent:          #ff6f00;
  --accent-light:    #ffa040;
  --bg:              #f5f7fa;
  --bg-white:        #ffffff;
  --text:            #263238;
  --text-light:      #607d8b;
  --text-muted:      #90a4ae;
  --border:          #e0e0e0;
  --success:         #2e7d32;
  --success-light:   #e8f5e9;
  --error:           #c62828;
  --error-light:     #ffebee;
  --warning:         #f57f17;
  --warning-light:   #fff8e1;
  --info:            #1a1a1a;
  --info-light:      #f5f5f5;
  --shadow:          0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:       0 8px 32px rgba(0,0,0,.12);
  --shadow-sm:       0 1px 4px rgba(0,0,0,.06);
  --radius:          12px;
  --radius-sm:       8px;
  --radius-lg:       20px;
  --radius-full:     999px;
  --transition:      .25s cubic-bezier(.4,0,.2,1);
  --font:            'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  --font-mono:       'JetBrains Mono', 'Fira Code', Consolas, monospace;
  --header-h:        72px;
  --max-w:           1200px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-dark); }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ── Focus / A11y ── */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 80px 0; }
section:nth-child(even) { background: var(--bg-white); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--text-light); font-size: 1.1rem; max-width: 640px; margin: 12px auto 0; }

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.site-header .logo--esporao { gap: 0; font-size: 0; line-height: 0; }
.site-header .logo--esporao .logo-img {
  display: block;
  width: auto;
  height: clamp(28px, 4.2vw, 40px);
}
.logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.2rem; font-weight: 800;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-full);
  color: var(--text); font-weight: 500; font-size: .95rem;
  transition: background var(--transition), color var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(0,0,0,.06); color: var(--primary);
}

.nav-my-area {
  background: rgba(0,0,0,.08) !important;
  color: #000000 !important;
  font-weight: 600 !important;
}
.nav-my-area:hover { background: rgba(0,0,0,.14) !important; }

/* Language toggle */
.lang-toggle {
  display: inline-flex; border-radius: var(--radius-full);
  border: 2px solid var(--border); overflow: hidden; margin-left: 12px;
}
.lang-toggle button {
  padding: 6px 14px; font-size: .85rem; font-weight: 600;
  color: var(--text-light); transition: all var(--transition);
}
.lang-toggle button.active {
  background: var(--primary); color: #fff;
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 28px; padding: 4px 0; z-index: 1010;
}
.hamburger span {
  display: block; height: 2.5px; border-radius: 2px;
  background: var(--text); transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    flex-direction: column; padding: 100px 32px 32px;
    background: var(--bg-white); box-shadow: var(--shadow-lg);
    transition: right var(--transition); align-items: stretch; gap: 4px;
  }
  .nav-links.open { right: 0; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
  .lang-toggle { margin: 16px 0 0; align-self: flex-start; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; padding: calc(var(--header-h) + 60px) 0 80px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary-dark) 100%);
  color: #fff; text-align: center; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; margin-bottom: 16px; font-size: clamp(2.2rem, 5vw, 4rem); }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.35rem); opacity: .9; margin-bottom: 12px; }
.hero-meta { display: flex; justify-content: center; gap: 32px; margin: 24px 0 36px; flex-wrap: wrap; }
.hero-meta-item { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; opacity: .9; }
.hero-meta-item svg { width: 22px; height: 22px; }

/* CTA button */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 40px; border-radius: var(--radius-full);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 4px 20px rgba(255,111,0,.35);
  transition: all var(--transition);
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,111,0,.45);
  color: #fff;
}
/* Hero (photo): white CTA — white on hover */
.hero.hero--dg-landing .btn-cta {
  background: #fff;
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
.hero.hero--dg-landing .btn-cta:hover {
  background: #000;
  color: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.hero.hero--dg-landing .btn-cta svg {
  stroke: currentColor;
}
.btn-cta svg { width: 20px; height: 20px; }

/* Countdown */
.countdown-wrapper { margin-top: 48px; }
.countdown-label { font-size: 18px; opacity: .8; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 2px; font-weight: bolder;}
.countdown {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
}
.countdown-item {
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border-radius: var(--radius); padding: 16px 20px; min-width: 90px;
  border: 1px solid rgba(255,255,255,.15);
}
.countdown-item .number {
  display: block; font-size: 2.5rem; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-item .label { font-size: .8rem; opacity: .75; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

/* DG landing–style hero (photo background, sponsor + wordmark) */
.hero.hero--dg-landing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  min-height: min(90vh, 960px);
  padding: calc(var(--header-h) + 56px) 24px 72px;
  background-color: #1a1a1a;
  background-image: url("../img/hero/hero-bg.jpg");
  background-image: image-set(
    url("../img/hero/hero-bg.webp") type("image/webp"),
    url("../img/hero/hero-bg.jpg") type("image/jpeg")
  );
  background-position: bottom center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero.hero--dg-landing::before {
  background: rgba(0, 0, 0, 0.3);
}
.hero.hero--dg-landing .hero-brand {
  position: absolute;
  top: calc(var(--header-h) + 20px);
  left: clamp(16px, 4vw, 48px);
  z-index: 2;
}
.hero.hero--dg-landing .hero-brand img {
  display: block;
  width: clamp(100px, 28vw, 140px);
  height: auto;
}
.hero.hero--dg-landing .hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero.hero--dg-landing .hero-mark {
  display: block;
  width: min(325px, 88vw);
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}
/* Landing-style primary headline (HTML from Site Content) */
.hero.hero--dg-landing .hero-title {
  margin: clamp(1rem, 3vw, 2.5rem) auto;
  width: min(100%, 820px);
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.6vw, 2.25rem);
  line-height: 1.15;
  font-weight: 500;
  color: #fff;
}
.hero.hero--dg-landing .hero-title b,
.hero.hero--dg-landing .hero-title strong {
  font-weight: 700;
}
.hero.hero--dg-landing .hero-title a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero.hero--dg-landing h1 {
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero.hero--dg-landing .hero-subtitle {
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2.2vw, 1.65rem);
  line-height: 1.3;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.94;
}
@media (max-width: 768px) {
  .hero.hero--dg-landing {
    min-height: auto;
    padding: calc(var(--header-h) + 20px) 24px 56px;
  }
  .hero.hero--dg-landing .hero-brand {
    position: static;
    align-self: flex-start;
    margin-bottom: 12px;
  }
}

/* ============================================================
   MEMORY (landing-style video block)
   ============================================================ */
.memory {
  background: #f1f1f1;
  color: var(--text);
  padding: 80px 0 60px;
  text-align: center;
}
.memory-inner {
  max-width: 100%;
}
.memory-heading {
  margin: 0 auto;
  max-width: 920px;
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  font-weight: 400;
  color: var(--text);
}
.memory-heading b,
.memory-heading strong {
  font-weight: 600;
}
.memory-video {
  width: 100%;
  max-width: 1211px;
  margin: clamp(40px, 8vw, 80px) auto 0;
  border: 0;
  display: block;
  aspect-ratio: 1211 / 696;
  background: #000;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.12);
}
.memory-logo-black {
  width: min(240px, 70vw);
  height: auto;
  margin: clamp(32px, 6vw, 50px) auto 0;
  display: block;
}

/* ============================================================
   ACTIVITIES SHOWCASE (public grid — after memory)
   ============================================================ */
.activities-showcase {
  padding: clamp(56px, 8vw, 88px) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
}
.activities-showcase-intro {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 52px);
}
.activities-showcase-heading {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.75rem, 3vw, 2.125rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.activities-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 36px) clamp(16px, 2vw, 24px);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 1099px) {
  .activities-showcase-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 799px) {
  .activities-showcase-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .activities-showcase-grid { grid-template-columns: 1fr; }
}
.accommodations-showcase .activities-showcase-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 479px) {
  .accommodations-showcase .activities-showcase-grid { grid-template-columns: 1fr; }
}
.accommodations-showcase {
  background: var(--bg);
}
.activity-showcase-card {
  text-align: left;
}
.activity-showcase-card .activity-showcase-photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--border);
}
.activity-showcase-body {
  padding-top: 14px;
}
.activity-showcase-title {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 1.05vw, 1.0625rem);
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}
.activity-showcase-desc {
  margin: 10px 0 0;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-light);
  display: -webkit-box;
  /* -webkit-line-clamp: 4; */
  /* line-clamp: 4; */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   EVENT INFO
   ============================================================ */
.event-info-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start;
}
.event-description { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; }
.event-description p + p { margin-top: 16px; }
.event-details-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.event-detail-row {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.event-detail-row:last-child { border-bottom: none; }
.event-detail-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: rgba(0,137,123,.08); color: var(--secondary);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.event-detail-icon svg { width: 22px; height: 22px; }
.event-detail-text .label { font-size: .85rem; color: var(--text-muted); margin-bottom: 2px; }
.event-detail-text .value { font-weight: 600; color: var(--text); }

.highlights-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.highlight-card {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px;
  background: var(--bg); border-radius: var(--radius-sm);
  border: 1px solid var(--border); transition: all var(--transition);
}
.highlight-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.highlight-icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.highlight-text h4 { font-size: 1rem; margin-bottom: 4px; }
.highlight-text p { font-size: .9rem; color: var(--text-light); }

@media (max-width: 768px) {
  .event-info-grid { grid-template-columns: 1fr; gap: 32px; }
  .highlights-list { grid-template-columns: 1fr; }
}

/* ============================================================
   REGISTRATION WIZARD
   ============================================================ */
.registration-section { background: var(--bg); }

/* Progress bar */
.wizard-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 48px; position: relative; max-width: 700px; margin-left: auto; margin-right: auto;
  margin-bottom: 48px;
}
.wizard-step-indicator {
  display: flex; flex-direction: column; align-items: center;
  position: relative; z-index: 2; flex: 1;
}
.wizard-step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
  border: 3px solid var(--border); background: var(--bg-white);
  color: var(--text-muted); transition: all var(--transition);
}
.wizard-step-indicator.active .wizard-step-circle {
  border-color: var(--primary); background: var(--primary); color: #fff;
}
.wizard-step-indicator.completed .wizard-step-circle {
  border-color: var(--success); background: var(--success); color: #fff;
}
.wizard-step-label {
  font-size: .75rem; color: var(--text-muted); margin-top: 8px;
  text-align: center; white-space: nowrap;
  transition: color var(--transition);
}
.wizard-step-indicator.active .wizard-step-label { color: var(--primary); font-weight: 600; }
.wizard-step-indicator.completed .wizard-step-label { color: var(--success); }

.wizard-step-line {
  position: absolute; top: 22px; left: 0; right: 0; height: 3px;
  background: var(--border); z-index: 1;
}
.wizard-step-line-fill {
  height: 100%; background: var(--success); transition: width .5s ease; width: 0%;
}

/* Step panels */
.wizard-panel { display: none; animation: fadeInUp .4s ease; }
.wizard-panel.active { display: block; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-card {
  background: var(--bg-white); border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow); border: 1px solid var(--border); max-width: 800px;
  margin: 0 auto;
}
.wizard-card-header { margin-bottom: 32px; }
.wizard-card-header h3 { margin-bottom: 6px; }
.wizard-card-header p { color: var(--text-light); }

/* Navigation buttons */
.wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}
.wizard-nav .btn { min-width: 140px; }

/* Registration — mobile: avoid horizontal scroll, tighter layout */
@media (max-width: 768px) {
  .registration-section {
    overflow-x: hidden;
  }
  .registration-section .container {
    padding-left: 16px;
    padding-right: 16px;
    max-width: 100%;
  }
  .registration-section .section-header {
    margin-bottom: 28px;
  }
  .wizard-progress {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 28px;
    padding: 0;
    box-sizing: border-box;
    gap: 0;
  }
  .wizard-step-indicator {
    flex: 1 1 0;
    min-width: 0;
  }
  .wizard-step-circle {
    width: 34px;
    height: 34px;
    font-size: 0.8rem;
    border-width: 2px;
  }
  .wizard-step-line {
    top: 17px;
    left: 8px;
    right: 8px;
  }
  .wizard-step-label {
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    font-size: 0.62rem;
    line-height: 1.25;
    margin-top: 6px;
    padding: 0 2px;
    max-width: 100%;
  }
  .wizard-card {
    padding: 22px 16px;
    max-width: 100%;
  }
  .wizard-card-header {
    margin-bottom: 20px;
  }
  .wizard-nav {
    margin-top: 22px;
    padding-top: 16px;
    gap: 10px;
  }
  .wizard-nav .btn {
    min-width: 0;
    flex: 1 1 auto;
    padding-left: 14px;
    padding-right: 14px;
  }
  .registration-section .form-group {
    margin-bottom: 18px;
  }
  .registration-section .form-row,
  .registration-section .form-row-3 {
    gap: 14px;
  }
  .registration-section .form-check {
    padding: 10px 12px;
    gap: 8px;
  }
  .registration-section .form-check-content {
    min-width: 0;
  }
  /* Step 3 activities: stack text under image + price; wider image on small screens */
  .registration-section .form-check.form-check--activity {
    flex-wrap: wrap;
    align-items: flex-start;
    column-gap: 10px;
    row-gap: 10px;
  }
  .registration-section .form-check.form-check--activity > input[type="checkbox"] {
    margin-top: 6px;
  }
  .registration-section .form-check.form-check--activity > .form-check-img--activity {
    order: 1;
    flex: 1 1 0;
    min-width: 100px;
    width: auto !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    min-height: 92px;
    max-height: 130px;
    object-fit: cover;
  }
  .registration-section .form-check.form-check--activity > .form-check-price {
    order: 2;
    margin-left: auto;
    align-self: center;
  }
  .registration-section .form-check.form-check--activity > .form-check-content {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    padding-top: 2px;
  }
}

@media (max-width: 400px) {
  .wizard-step-circle {
    width: 30px;
    height: 30px;
    font-size: 0.72rem;
  }
  .wizard-step-line {
    top: 15px;
  }
  .wizard-step-label {
    font-size: 0.58rem;
  }
  .wizard-card {
    padding: 18px 12px;
  }
  .registration-section .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* ============================================================
   FORMS
   ============================================================ */

/* Form group */
.form-group { margin-bottom: 24px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 600px) {
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
}

/* Labels */
.form-label {
  display: block; font-size: .875rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-label .required { color: var(--error); margin-left: 2px; }

/* Inputs */
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-white); color: var(--text);
  font-size: .95rem; transition: all var(--transition);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 4px rgba(0,0,0,.08);
}
.form-input::placeholder { color: var(--text-muted); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23607d8b'%3E%3Cpath d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 40px;
}

/* Validation states */
.form-input.error,
.form-select.error,
.form-textarea.error { border-color: var(--error); }
.form-input.success,
.form-select.success { border-color: var(--success); }
.form-error {
  display: none; font-size: .8rem; color: var(--error);
  margin-top: 4px; align-items: center; gap: 4px;
}
.form-error.visible { display: flex; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }

/* Toggle switch */
.toggle-group {
  display: flex; border-radius: var(--radius-full); overflow: hidden;
  border: 2px solid var(--border); max-width: 100%;
}
.toggle-group label {
  flex: 1; padding: 12px 20px; text-align: center;
  font-size: .9rem; font-weight: 500; cursor: pointer;
  transition: all var(--transition); color: var(--text-light);
  white-space: nowrap;
}
.toggle-group input { display: none; }
.toggle-group input:checked + label {
  background: var(--primary); color: #fff;
}
@media (max-width: 500px) {
  .toggle-group { flex-direction: column; border-radius: var(--radius-sm); }
  .toggle-group label { white-space: normal; }
}

/* Checkboxes & Radios */
.form-check {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); cursor: pointer;
  transition: all var(--transition); margin-bottom: 8px;
}
.form-check:hover { border-color: var(--primary-light); background: rgba(0,0,0,.02); }
.form-check.selected { border-color: var(--primary); background: rgba(0,0,0,.04); }
.form-check input[type="radio"],
.form-check input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; flex-shrink: 0; }
.form-check-content { flex: 1; }
.form-check-content .name { font-weight: 600; }
.form-check-content .activity-schedule {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
  letter-spacing: 0.02em;
}
.form-check-content .desc { font-size: .875rem; color: var(--text-light); margin-top: 6px; }
.form-check-content .meta { font-size: .8rem; color: var(--text-muted); margin-top: 4px; display: flex; gap: 12px; flex-wrap: wrap; }
.form-check-price {
  font-weight: 700; color: var(--secondary); white-space: nowrap;
  display: flex; align-items: center; flex-shrink: 0;
}
/* Activity cards (step 3): image size; mobile layout in registration media query */
.form-check-img--activity {
  width: 80px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.form-check.disabled { opacity: .5; pointer-events: none; }

/* Activity time conflict: card stays legible; warning is emphasized (not faded with .disabled) */
.form-check.activity-overlap-blocked {
  opacity: 1;
  pointer-events: none;
  cursor: not-allowed;
  border-color: rgba(183, 28, 28, 0.35);
  background: rgba(183, 28, 28, 0.06);
}
.form-check.activity-overlap-blocked:hover {
  border-color: rgba(183, 28, 28, 0.45);
  background: rgba(183, 28, 28, 0.08);
}
.form-check.activity-overlap-blocked .form-check-img,
.form-check.activity-overlap-blocked .form-check-content .name,
.form-check.activity-overlap-blocked .form-check-content .activity-schedule,
.form-check.activity-overlap-blocked .form-check-content .desc,
.form-check.activity-overlap-blocked .form-check-price {
  opacity: 0.72;
}
.form-check.activity-overlap-blocked .activity-overlap-hint {
  display: block;
  width: 100%;
  flex-basis: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #7f1d1d;
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.95) 0%, rgba(254, 202, 202, 0.75) 100%);
  border: 1px solid rgba(185, 28, 28, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  opacity: 1;
}
.form-check.activity-overlap-blocked .form-check-content .meta {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.badge-early-bird {
  display: inline-block; padding: 2px 8px; border-radius: var(--radius-full);
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; margin-left: 6px;
}

/* ============================================================
   PARTICIPANT CARDS
   ============================================================ */
.registration-sold-out {
  margin-bottom: 24px;
}
.registration-sold-out-card {
  text-align: center;
  padding: 32px 24px;
}
.registration-sold-out-msg {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.accommodation-all-sold-out-msg {
  margin: 0;
  padding: 8px 0 4px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.participant-card,
.participant-services-block {
  background: var(--bg); border-radius: var(--radius);
  padding: 28px; margin-bottom: 20px;
  border: 1px solid var(--border); position: relative;
  transition: all var(--transition);
}
.participant-card:hover,
.participant-services-block:hover { box-shadow: var(--shadow-sm); }
.participant-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.participant-card-header h4 { font-size: 1rem; }
.participant-card-header .badge { margin-left: 8px; }
.btn-remove-participant {
  color: var(--error); font-size: .85rem; font-weight: 500;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius-full);
  transition: all var(--transition);
}
.btn-remove-participant:hover { background: var(--error-light); }

.minor-alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--warning-light); border: 1px solid var(--warning);
  color: var(--warning); font-size: .875rem; margin-bottom: 16px;
}
.minor-alert svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ============================================================
   ORDER SUMMARY (Step 4)
   ============================================================ */
.order-summary { margin-bottom: 32px; }
.order-participant {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 20px; margin-bottom: 12px; border: 1px solid var(--border);
}
.order-participant-name { font-weight: 700; margin-bottom: 8px; font-size: 1.05rem; }
.order-line {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0; font-size: .9rem;
}
.order-line .item-label { color: var(--text-light); }
.order-line .item-price { font-weight: 600; }
.order-divider { border-top: 2px solid var(--border); margin: 16px 0; }
.order-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--primary); color: #fff;
  border-radius: var(--radius-sm); font-size: 1.15rem; font-weight: 700;
  margin-top: 20px;
}

/* Payment form */
.payment-form {
  background: var(--bg); border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border); margin-top: 24px;
}
.payment-form h4 { margin-bottom: 20px; }

/* EasyPay Checkout: fill the payment box (desktop + mobile) */
.payment-form #easypay-checkout {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 80px;
}
.payment-form #easypay-checkout iframe,
.payment-form #easypay-checkout > * {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.card-icons { display: flex; gap: 8px; margin-bottom: 16px; opacity: .6; }
.card-icons img, .card-icons svg { height: 28px; }
.payment-secure {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--text-muted); margin-top: 12px;
}
.payment-secure svg { width: 16px; height: 16px; color: var(--success); }

/* ============================================================
   CONFIRMATION (Step 5)
   ============================================================ */
.confirmation-panel { text-align: center; }
.confirmation-icon {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 24px;
  background: var(--success-light); color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.confirmation-icon svg { width: 44px; height: 44px; }
.confirmation-panel h2 { color: var(--success); margin-bottom: 8px; }
.confirmation-panel .subtitle { color: var(--text-light); margin-bottom: 24px; }
.order-number-display {
  display: inline-block; padding: 8px 24px; border-radius: var(--radius-full);
  background: var(--bg); border: 2px solid var(--border);
  font-size: 1.2rem; font-weight: 700; font-family: var(--font-mono);
  letter-spacing: 2px; margin-bottom: 24px;
}
.confirmation-tickets { text-align: left; margin-top: 32px; }
.confirmation-ticket-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; background: var(--bg); border-radius: var(--radius-sm);
  margin-bottom: 8px; border: 1px solid var(--border);
}
.confirmation-ticket-item .name { font-weight: 600; }
.confirmation-ticket-item .type { font-size: .875rem; color: var(--text-light); }
.email-notice {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 16px; background: var(--info-light); border-radius: var(--radius-sm);
  color: var(--info); font-size: .9rem; margin-top: 24px;
}

/* ============================================================
   TICKET LOOKUP
   ============================================================ */
.lookup-form {
  max-width: 500px; margin: 0 auto;
  display: flex; gap: 12px;
}
.lookup-form .form-input { flex: 1; }
.lookup-results { margin-top: 32px; }
.lookup-ticket-card {
  display: flex; gap: 24px; padding: 24px;
  background: var(--bg-white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  margin-bottom: 16px; align-items: center;
}
.lookup-ticket-qr { flex-shrink: 0; }
.lookup-ticket-qr canvas,
.lookup-ticket-qr img { width: 100px; height: 100px; border-radius: var(--radius-sm); }
.lookup-ticket-info { flex: 1; }
.lookup-ticket-info h4 { font-size: 1rem; margin-bottom: 6px; }
.lookup-ticket-info .meta { font-size: .875rem; color: var(--text-light); }
@media (max-width: 500px) {
  .lookup-form { flex-direction: column; }
  .lookup-ticket-card { flex-direction: column; text-align: center; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem;
  transition: all var(--transition); border: 2px solid transparent;
  line-height: 1.4;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: var(--secondary-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; border-color: var(--border); color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(0,0,0,.03); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #1b5e20; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-light); color: #fff; }
.btn-ghost { background: transparent; color: var(--text-light); }
.btn-ghost:hover { color: var(--text); background: rgba(0,0,0,.04); }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-primary { background: rgba(0,0,0,.1); color: var(--primary); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-error { background: var(--error-light); color: var(--error); }
.badge-info { background: var(--info-light); color: var(--info); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed; top: calc(var(--header-h) + 16px); right: 16px;
  z-index: 10000; display: flex; flex-direction: column; gap: 8px;
  max-width: 400px; width: calc(100% - 32px);
}
.toast {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--bg-white); box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--text-muted);
  animation: toastIn .35s ease;
  font-size: .9rem;
}
.toast.toast-success { border-left-color: var(--success); }
.toast.toast-error   { border-left-color: var(--error); }
.toast.toast-warning { border-left-color: var(--warning); }
.toast.toast-info    { border-left-color: var(--info); }
.toast-icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.toast.toast-success .toast-icon { color: var(--success); }
.toast.toast-error   .toast-icon { color: var(--error); }
.toast.toast-warning .toast-icon { color: var(--warning); }
.toast.toast-info    .toast-icon { color: var(--info); }
.toast-body { flex: 1; }
.toast-close {
  width: 20px; height: 20px; color: var(--text-muted); flex-shrink: 0;
  transition: color var(--transition); cursor: pointer;
}
.toast-close:hover { color: var(--text); }
.toast.removing { animation: toastOut .3s ease forwards; }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(40px); }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); max-width: 500px; width: 100%;
  animation: modalIn .3s ease;
  overflow: hidden;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.15rem; }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ============================================================
   LOADING
   ============================================================ */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.loading-overlay {
  position: fixed; inset: 0; z-index: 11000;
  background: rgba(255,255,255,.85); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.loading-overlay.visible { display: flex; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.loading-text { color: var(--text-light); font-size: .95rem; }

.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #ececec 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--primary-dark); color: rgba(255,255,255,.8);
  padding: 48px 0 24px; font-size: .9rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 32px;
}
.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand .logo--esporao-footer {
  gap: 0;
  font-size: 0;
  line-height: 0;
  margin-bottom: 16px;
}
.footer-brand .logo-img--footer {
  display: block;
  width: auto;
  height: clamp(32px, 5vw, 48px);
  opacity: 0.95;
}
.footer-brand p { color: rgba(255,255,255,.6); line-height: 1.7; }
.footer-links h4,
.footer-contact h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer-links a { display: block; color: rgba(255,255,255,.6); padding: 4px 0; transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: #fff; }
.footer-contact p { margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px; text-align: center; color: rgba(255,255,255,.4); font-size: .8rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: all var(--transition);
}
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { background: var(--primary-light); transform: translateY(-2px); }
.scroll-top svg { width: 22px; height: 22px; }

/* ============================================================
   TICKET PAGE (ticket.php)
   ============================================================ */
.ticket-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg);
}
.ticket-container {
  max-width: 480px; width: 100%; background: var(--bg-white);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); position: relative;
}
.ticket-header {
  background: linear-gradient(135deg, var(--primary), var(--secondary-dark));
  color: #fff; padding: 32px 28px; text-align: center;
}
.ticket-header .logo { justify-content: center; color: #fff; margin-bottom: 12px; }
.ticket-header h2 { color: #fff; font-size: 1.5rem; }
.ticket-header .event-date { opacity: .9; margin-top: 6px; }
.ticket-body { padding: 28px; }
.ticket-field { margin-bottom: 16px; }
.ticket-field .label { font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
.ticket-field .value { font-weight: 600; font-size: 1.05rem; }
.ticket-divider {
  border: none; border-top: 2px dashed var(--border); margin: 20px -28px;
  position: relative;
}
.ticket-divider::before,
.ticket-divider::after {
  content: ''; position: absolute; top: -14px;
  width: 28px; height: 28px; background: var(--bg);
  border-radius: 50%;
}
.ticket-divider::before { left: -14px; }
.ticket-divider::after  { right: -14px; }
.ticket-qr { text-align: center; padding: 16px 0; }
.ticket-qr canvas { margin: 0 auto; }
.ticket-number {
  text-align: center; font-family: var(--font-mono);
  font-size: .85rem; color: var(--text-muted); letter-spacing: 2px; margin-top: 8px;
}
.ticket-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.ticket-footer {
  text-align: center; padding: 20px 28px; background: var(--bg);
  border-top: 1px solid var(--border);
}
.ticket-actions { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }

/* Wizard: accommodation room needs at least one person assigned */
.room-card.room-card--error {
  border: 2px solid var(--error, #c62828) !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  body { background: #fff !important; }
  .site-header, .site-footer, .scroll-top, .toast-container,
  .loading-overlay, .btn-cta, .wizard-nav, .no-print { display: none !important; }
  section { padding: 20px 0 !important; }
  .ticket-container { box-shadow: none !important; border: 2px solid #000 !important; }
  .ticket-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ticket-actions { display: none !important; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.w-full { width: 100%; }
