/* ── Variables ─────────────────────────────────────────── */
:root {
  --orange:      #ff7900;
  --orange-dark: #e06a00;
  --dark:        #1a1a2e;
  --card-shadow: 0 2px 16px rgba(0,0,0,.07);
}

/* ── Base ──────────────────────────────────────────────── */
body { background: #f8f9fa; color: #212529; }

/* ── Navbar ────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.navbar-brand span { color: var(--orange); font-weight: 700; font-size: 1.3rem; }
.navbar-brand img  { max-height: 44px; width: auto; }
.nav-link { transition: color .2s; }
.nav-link:hover { color: var(--orange) !important; }

/* ── Language switcher ─────────────────────────────────── */
.lang-btn.active { background: var(--orange); color: #fff; border-color: var(--orange); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-orange         { background: var(--orange); color: #fff; border: none; font-weight: 600; }
.btn-orange:hover   { background: var(--orange-dark); color: #fff; }
.btn-outline-orange { border: 2px solid var(--orange); color: var(--orange); font-weight: 600; background: transparent; }
.btn-outline-orange:hover { background: var(--orange); color: #fff; }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 90px 0 70px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,121,0,.18) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,121,0,.12) 0%, transparent 40%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; }
.hero .badge-year {
  background: rgba(255,121,0,.25);
  border: 1px solid rgba(255,121,0,.4);
  font-size: .9rem;
  backdrop-filter: blur(4px);
}
.hero-scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: .6;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats bar ─────────────────────────────────────────── */
.stats-bar {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  position: relative; z-index: 1;
}
.stat-item { border-right: 1px solid #eee; }
.stat-item:last-child { border-right: none; }
.stat-num  { font-size: 2rem; font-weight: 700; color: var(--orange); }

/* ── Competition cards ─────────────────────────────────── */
.concours-card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  transition: transform .25s, box-shadow .25s;
  height: 100%;
  background: #fff;
}
.concours-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(255,121,0,.2);
}
.concours-card .card-top-bar {
  height: 4px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--orange), #ffb347);
}
.card-badge {
  background: var(--orange); color: #fff;
  font-size: .72rem; padding: 3px 10px;
  border-radius: 20px; font-weight: 600;
}
.card-date { font-size: .82rem; color: #888; }

/* Deadline progress bar */
.deadline-bar { height: 4px; border-radius: 4px; background: #eee; overflow: hidden; }
.deadline-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--orange), #ffb347); transition: width .6s ease; }

/* ── Steps (How to apply) ──────────────────────────────── */
.steps-section { background: #fff; }
.step-wrapper { position: relative; }
.step-wrapper::after {
  content: '';
  position: absolute; top: 28px; left: calc(50% + 28px);
  width: calc(100% - 56px); height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
}
.col-md-3:last-child .step-wrapper::after { display: none; }
.step-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--orange), #ffb347);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.4rem;
  margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(255,121,0,.35);
  position: relative; z-index: 1;
}
.step-number {
  position: absolute; top: -6px; right: -6px;
  width: 20px; height: 20px;
  background: var(--dark); color: #fff;
  border-radius: 50%; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ────────────────────────────────────────────── */
footer { background: var(--dark); color: #aaa; }
footer a { color: var(--orange); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-divider { border-color: rgba(255,255,255,.08); }

/* ── Uppercase inputs ─────────────────────────────────── */
input.text-uppercase { text-transform: uppercase; }
input.text-uppercase::placeholder { text-transform: none; }

/* ── Utilities ─────────────────────────────────────────── */
.section-title::after {
  content: '';
  display: block; width: 48px; height: 3px;
  background: var(--orange); border-radius: 2px;
  margin: 10px auto 0;
}

/* ══════════════════════════════════════════════════════════
   Registration page
   ══════════════════════════════════════════════════════════ */

/* ── Page header band ──────────────────────────────────── */
.reg-header {
  background: linear-gradient(135deg, var(--dark) 0%, #16213e 50%, #0f3460 100%);
  padding: 48px 0 36px;
  position: relative;
  overflow: hidden;
}
.reg-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 60%, rgba(255,121,0,.18) 0%, transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(255,121,0,.10) 0%, transparent 40%);
  pointer-events: none;
}
.reg-header-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* ── Stepper ───────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 28px 0 8px;
  overflow-x: auto;
}
.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 64px;
  max-width: 110px;
  position: relative;
}
/* connector line */
.stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: #dee2e6;
  transition: background .4s;
}
.stepper-item.done:not(:last-child)::after  { background: var(--orange); }
.stepper-item.active:not(:last-child)::after { background: #dee2e6; }

.stepper-bubble {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #dee2e6;
  background: #fff;
  color: #aaa;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
  transition: all .3s;
  position: relative; z-index: 1;
}
.stepper-item.done   .stepper-bubble { background: var(--orange); border-color: var(--orange); color: #fff; }
.stepper-item.active .stepper-bubble { background: var(--dark);   border-color: var(--dark);   color: #fff; box-shadow: 0 0 0 4px rgba(255,121,0,.2); }

.stepper-label {
  font-size: .65rem;
  color: #aaa;
  margin-top: 6px;
  text-align: center;
  line-height: 1.2;
  transition: color .3s;
}
.stepper-item.active .stepper-label { color: var(--dark); font-weight: 600; }
.stepper-item.done   .stepper-label { color: var(--orange); }

/* ── Step panes ────────────────────────────────────────── */
.step-pane          { display: none; }
.step-pane.active   { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form cards ────────────────────────────────────────── */
.form-card {
  border: none;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  background: #fff;
  overflow: hidden;
}
.form-card-top {
  height: 4px;
  background: linear-gradient(90deg, var(--orange), #ffb347);
}
.form-card-body { padding: 28px; }
.form-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.form-card-title .step-badge {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--orange), #ffb347);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: .75rem; font-weight: 700;
  flex-shrink: 0;
}
.form-label { font-size: .82rem; font-weight: 600; color: #495057; margin-bottom: 4px; }
.form-control, .form-select {
  border-radius: 8px;
  border-color: #dee2e6;
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,121,0,.15);
}

/* ── Step nav buttons ──────────────────────────────────── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 8px;
}

/* ── Summary table ─────────────────────────────────────── */
.summary-section { margin-bottom: 20px; }
.summary-section-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--orange);
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 6px;
  margin-bottom: 10px;
}
.summary-table { width: 100%; font-size: .88rem; }
.summary-table td:first-child { color: #6c757d; width: 45%; padding: 4px 0; }
.summary-table td:last-child   { font-weight: 600; color: var(--dark); padding: 4px 0; }

/* ── Success state (step 7) ────────────────────────────── */
.success-card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  background: #fff;
  text-align: center;
  padding: 52px 32px;
}
.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 6px 20px rgba(40,167,69,.3);
}

/* ── Payment info card ─────────────────────────────────── */
.payment-info-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 16px 20px;
}
.payment-info-card .pi-label { font-size: .78rem; color: #6c757d; margin-bottom: 2px; }
.payment-info-card .pi-value { font-weight: 700; color: var(--dark); }
