/* Jeune'Innov — custom styles */

:root {
  --ji-navy:      #002B5B;
  --ji-navy-deep: #001A3A;
  --ji-yellow:    #FFD700;
  --ji-blue:      #4A90E2;
  --ji-mist:      #F5F7FB;
  --ji-ink:       #0B1220;
}

/* ── Global ─────────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

*:focus-visible {
  outline: 2px solid var(--ji-blue);
  outline-offset: 2px;
}

a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ── Arabic mode ─────────────────────────────────────────────────────────────── */
body.arabic-mode {
  font-family: 'Cairo', sans-serif;
}

body.arabic-mode .font-poppins,
body.arabic-mode .font-inter {
  font-family: 'Cairo', sans-serif;
}

/* ── Language Switcher ──────────────────────────────────────────────────────── */
.ji-lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.ji-lang-btn {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.05em;
  line-height: 1;
}

.ji-lang-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.ji-lang-btn--active {
  background: var(--ji-yellow);
  color: var(--ji-navy) !important;
  box-shadow: 0 1px 6px rgba(255, 215, 0, 0.4);
}

.ji-lang-btn[data-lang="ar"] {
  font-family: 'Cairo', sans-serif;
  font-size: 0.85rem;
}

/* ── Form — modern inputs ───────────────────────────────────────────────────── */
.ji-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.625rem;
  background: #fafafa;
  color: #111827;
  font-size: 0.9375rem;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.ji-input::placeholder {
  color: #9ca3af;
}

.ji-input:focus {
  outline: none;
  border-color: var(--ji-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.12);
}

.ji-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* ── Form — group divider ───────────────────────────────────────────────────── */
.form-group-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid #f0f0f0;
}

.form-group-header:first-child {
  margin-top: 0;
}

.form-group-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ji-yellow);
  flex-shrink: 0;
}

.form-group-header span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
}

/* ── Select — reset arrow ──────────────────────────────────────────────────── */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: none;
}

/* RTL select arrow mirror */
[dir="rtl"] .select-arrow {
  right: auto;
  left: 0;
}

/* ── Progress bar ───────────────────────────────────────────────────────────── */
#progress-bar {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Step indicator badges ──────────────────────────────────────────────────── */
.step-badge {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.3s, color 0.3s;
}

/* ── RTL form layout ────────────────────────────────────────────────────────── */
[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
  text-align: right;
}

[dir="rtl"] .form-group-header {
  justify-content: flex-end;
}

/* ── Partner grid image fallback ───────────────────────────────────────────── */
.partner-slot {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Misc ───────────────────────────────────────────────────────────────────── */
code.select-all {
  user-select: all;
  -webkit-user-select: all;
}
