/* ===========================================================
   بوابة شكاوى العملاء — Emirates Complaints Portal (Replica)
   Theme: Navy (#1a2a5e) + Gold (#c9a84c) — Arabic RTL
   =========================================================== */

:root {
  /* Brand */
  --navy-900: #0a1132;
  --navy-800: #0f1a3e;
  --navy-700: #1a2a5e;
  --navy-600: #243470;
  --navy-500: #2c3f86;
  --gold-600: #a07830;
  --gold-500: #c9a84c;
  --gold-400: #d8bb66;
  --gold-100: #f6eccd;

  /* Neutrals */
  --ink-900: #0c1530;
  --ink-700: #2d3553;
  --ink-500: #6b7280;
  --ink-400: #9aa3b2;
  --ink-300: #c5cad6;
  --line: #e8ecf4;
  --bg: #f4f6fb;
  --bg-soft: #f8faff;
  --white: #ffffff;

  /* Semantic */
  --danger: #e53e3e;
  --danger-soft: #fff5f5;
  --danger-deep: #c53030;
  --danger-ink: #742a2a;
  --success: #2f9e5f;
  --success-soft: #ecfaf2;
  --warn: #b7791f;
  --warn-soft: #fff8e6;

  /* Shadows / radii / motion */
  --shadow-sm: 0 1px 2px rgba(10, 17, 50, 0.06), 0 1px 3px rgba(10, 17, 50, 0.05);
  --shadow-md: 0 6px 18px rgba(10, 17, 50, 0.08), 0 2px 6px rgba(10, 17, 50, 0.05);
  --shadow-lg: 0 24px 50px -16px rgba(10, 17, 50, 0.25), 0 8px 18px -6px rgba(10, 17, 50, 0.12);
  --shadow-gold: 0 12px 30px -10px rgba(201, 168, 76, 0.55);

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 560ms;

  --container: 1180px;
}

/* ====== Base ====== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

/* ====== Reveal animation ====== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ====== Buttons ====== */
.btn {
  --bg: var(--navy-700);
  --fg: var(--white);
  --bd: transparent;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-med) var(--ease),
    background var(--t-med) var(--ease), color var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(201, 168, 76, 0.5); outline-offset: 2px; }

.btn--gold {
  --bg: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 50%, var(--gold-600) 100%);
  --fg: var(--navy-800);
  background: var(--bg);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { box-shadow: 0 16px 36px -10px rgba(201, 168, 76, 0.7); }

.btn--ghost {
  --bg: transparent;
  --fg: var(--white);
  --bd: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover {
  --bg: rgba(255, 255, 255, 0.1);
  --bd: rgba(255, 255, 255, 0.7);
}

.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--sm { padding: 8px 16px; font-size: 0.85rem; }

/* ====== Eyebrow ====== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold-600);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(201, 168, 76, 0.3);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(201, 168, 76, 0); }
}

/* ===========================================================
   NAVBAR
   =========================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-700);
}
.brand__mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  color: var(--gold-500);
  box-shadow: 0 6px 18px -8px rgba(26, 42, 94, 0.6);
  flex: 0 0 auto;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { color: var(--navy-700); font-weight: 800; font-size: 1.05rem; }
.brand__text small { color: var(--ink-500); font-size: 0.72rem; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-700);
  border-radius: var(--r-pill);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--navy-700); background: var(--bg); }
.nav__link.is-active { color: var(--navy-700); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  bottom: 2px; right: 50%;
  transform: translateX(50%);
  width: 18px; height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
}

.nav__cta { font-size: 0.9rem; }

.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
}
.nav__burger span {
  position: absolute;
  inset-inline: 12px;
  height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease), top var(--t-med) var(--ease);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 28px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(70px, 12vw, 140px) 0 clamp(90px, 14vw, 160px);
  color: var(--white);
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(201, 168, 76, 0.18), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(36, 52, 112, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 38%, var(--navy-700) 70%, var(--navy-600) 100%);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 80%);
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.hero__blob--a { width: 380px; height: 380px; top: -120px; right: -80px;
  background: radial-gradient(circle, var(--gold-500), transparent 70%); opacity: 0.35; }
.hero__blob--b { width: 460px; height: 460px; bottom: -160px; left: -120px;
  background: radial-gradient(circle, var(--navy-500), transparent 70%); opacity: 0.6; }
.hero__blob--c { width: 220px; height: 220px; top: 40%; left: 30%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.7), transparent 70%); opacity: 0.18; }

.hero__inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__inner .eyebrow {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-400);
  border-color: rgba(201, 168, 76, 0.3);
  backdrop-filter: blur(6px);
}

.hero__title {
  margin: 18px 0 16px;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--white);
}
.hero__title-accent {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 60%, var(--gold-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}
.hero__title-accent::after {
  content: "";
  display: block;
  width: 110px; height: 4px;
  margin: 14px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-500), transparent);
  border-radius: 2px;
}

.hero__desc {
  max-width: 660px;
  margin: 0 0 36px;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.85;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 42px;
}

.hero__chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0; margin: 0;
}
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}
.hero__chips svg { color: var(--gold-400); }

.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 6px;
  z-index: 1;
}
.hero__scroll span {
  width: 3px; height: 8px;
  background: var(--gold-500);
  border-radius: 2px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { transform: translateY(0); opacity: 0; }
  30%  { opacity: 1; }
  100% { transform: translateY(16px); opacity: 0; }
}

/* ===========================================================
   SECTIONS — common
   =========================================================== */
.section {
  padding: clamp(70px, 10vw, 110px) 0;
  background: var(--white);
  position: relative;
}
.section--alt { background: var(--bg); }

.section__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section__title {
  margin: 16px 0 14px;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-700);
  line-height: 1.25;
  letter-spacing: -0.5px;
}
.section__lede {
  margin: 0;
  color: var(--ink-500);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.85;
}

/* ===========================================================
   FEATURES
   =========================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}
.feature {
  position: relative;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
  overflow: hidden;
}
.feature::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 110px; height: 110px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.12), transparent 70%);
  border-radius: 50%;
  transform: translate(40%, -40%);
  transition: transform var(--t-slow) var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 168, 76, 0.35);
}
.feature:hover::before { transform: translate(20%, -20%) scale(1.4); }
.feature__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  color: var(--gold-500);
  margin-bottom: 18px;
  box-shadow: 0 6px 18px -8px rgba(26, 42, 94, 0.5);
  position: relative;
  z-index: 1;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-700);
}
.feature p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ====== Stats ====== */
.stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  border-radius: var(--r-xl);
  padding: 36px 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(201, 168, 76, 0.18), transparent 60%),
    radial-gradient(600px 200px at 100% 100%, rgba(201, 168, 76, 0.12), transparent 60%);
  pointer-events: none;
}
.stat {
  position: relative;
  text-align: center;
  padding: 12px 16px;
  color: var(--white);
}
.stat + .stat::before {
  content: "";
  position: absolute;
  top: 18%; bottom: 18%;
  right: -1px; /* in RTL, this appears on the left visually */
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.stat__num {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 6px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 500;
}

/* ===========================================================
   STEPS
   =========================================================== */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  position: relative;
}
.step {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step__num {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-700);
  font-weight: 800;
  font-size: 1.5rem;
  box-shadow: 0 8px 22px -8px rgba(201, 168, 76, 0.6),
              inset 0 -3px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}
.step__num::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 2px dashed rgba(201, 168, 76, 0.35);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.step__body h3 {
  margin: 0 0 8px;
  color: var(--navy-700);
  font-size: 1.15rem;
  font-weight: 700;
}
.step__body p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ===========================================================
   EMIRATES GRID
   =========================================================== */
.emirates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.emirate {
  position: relative;
  padding: 22px 18px 20px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
  overflow: hidden;
}
.emirate::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, #00732f 0%, #ffffff 50%, #000000 100%);
  opacity: 0.85;
}
.emirate:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 76, 0.45);
  box-shadow: var(--shadow-md);
}
.emirate__code {
  display: inline-block;
  padding: 3px 10px;
  background: var(--navy-700);
  color: var(--gold-400);
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-family: "Cairo", system-ui, sans-serif;
}
.emirate h3 {
  margin: 0 0 4px;
  color: var(--navy-700);
  font-size: 1.15rem;
  font-weight: 800;
}
.emirate p {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.85rem;
}

.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(26, 42, 94, 0.04), rgba(201, 168, 76, 0.08));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--r-lg);
  border-inline-start: 4px solid var(--gold-500);
}
.legal-note__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-400);
  box-shadow: 0 6px 18px -8px rgba(26, 42, 94, 0.4);
}
.legal-note strong {
  display: block;
  color: var(--navy-700);
  font-size: 1rem;
  margin-bottom: 4px;
}
.legal-note p {
  margin: 0;
  color: var(--ink-700);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ===========================================================
   FORM
   =========================================================== */
.form-wrap {
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 44px);
  position: relative;
}
.form-wrap::before {
  content: "";
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold-500), var(--navy-700));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.form { display: flex; flex-direction: column; gap: 22px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.form__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-500);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-700);
}
.req { color: var(--danger); }

.field input[type="text"],
.field input[type="tel"],
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  font: inherit;
  color: var(--ink-900);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-400);
}
.field input:hover,
.field textarea:hover { border-color: var(--ink-300); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.7; }

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.field.is-invalid input:focus,
.field.is-invalid textarea:focus {
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.15);
}

.field__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 18px;
}
.counter {
  font-size: 0.78rem;
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
}
.counter.is-good { color: var(--success); }

.hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid rgba(183, 121, 31, 0.25);
  padding: 6px 10px;
  border-radius: var(--r-sm);
}

/* ====== Phone input (UAE +971 prefix) ====== */
.phone-input {
  display: flex;
  align-items: stretch;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease);
}
.phone-input:hover { border-color: var(--ink-300); }
.phone-input:focus-within {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}
.phone-input__prefix {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.05));
  color: var(--navy-700);
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  white-space: nowrap;
  user-select: none;
  cursor: default;
}
.phone-input__flag {
  font-size: 1.15rem;
  line-height: 1;
}
.phone-input__dial {
  font-variant-numeric: tabular-nums;
  font-family: "Cairo", system-ui, sans-serif;
}
.phone-input__sep {
  width: 1.5px;
  height: 22px;
  background: var(--line);
  margin-inline-start: 4px;
}
.phone-input input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  padding: 13px 14px;
  color: var(--ink-900);
  font-size: 1rem;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
}
.phone-input input:focus { border: 0 !important; box-shadow: none !important; }
.phone-input input::placeholder { color: var(--ink-400); letter-spacing: 0.6px; }

.field.is-invalid .phone-input {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.field.is-invalid .phone-input:focus-within {
  box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.15);
}
.field.is-invalid .phone-input__prefix { color: var(--danger-deep); }
.field.is-invalid .phone-input__sep { background: rgba(229, 62, 62, 0.3); }

.error {
  font-size: 0.83rem;
  color: var(--danger);
  min-height: 0;
  display: block;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.error.is-show { opacity: 1; transform: none; }

/* Radios (segmented) */
.radios {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  cursor: pointer;
  font-weight: 600;
  color: var(--ink-700);
  font-size: 0.92rem;
  transition: all var(--t-fast) var(--ease);
  user-select: none;
}
.radio:hover { border-color: var(--ink-300); background: var(--white); }
.radio input { position: absolute; opacity: 0; pointer-events: none; }
.radio__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink-300);
  border-radius: 50%;
  background: var(--white);
  position: relative;
  flex: 0 0 auto;
  transition: all var(--t-fast) var(--ease);
}
.radio input:checked ~ .radio__box {
  border-color: var(--gold-500);
  background: var(--gold-500);
  box-shadow: inset 0 0 0 3px var(--white);
}
.radio:has(input:checked) {
  background: var(--white);
  border-color: var(--gold-500);
  color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.12);
}

/* Chip-select for complaint type */
.chips-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 16px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  color: var(--ink-700);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--ink-300); background: var(--white); }
.chip:has(input:checked) {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--white);
  border-color: var(--navy-700);
  box-shadow: 0 6px 18px -8px rgba(26, 42, 94, 0.5);
}
.chip:has(input:checked)::after {
  content: "✓";
  margin-inline-start: 6px;
  color: var(--gold-400);
  font-weight: 800;
}

/* Dropzone */
.dropzone {
  position: relative;
  display: block;
  border: 2px dashed var(--ink-300);
  border-radius: var(--r-lg);
  background: var(--bg-soft);
  padding: 26px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.dropzone:hover {
  border-color: var(--gold-500);
  background: rgba(201, 168, 76, 0.06);
}
.dropzone.is-drag {
  border-color: var(--gold-500);
  background: rgba(201, 168, 76, 0.1);
  transform: scale(1.01);
}
.dropzone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  pointer-events: none;
}
.dropzone__icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  color: var(--gold-500);
  margin-bottom: 6px;
}
.dropzone__title {
  margin: 0;
  font-weight: 700;
  color: var(--navy-700);
  font-size: 1rem;
}
.dropzone__hint {
  margin: 0;
  color: var(--ink-500);
  font-size: 0.85rem;
}
.dropzone.has-file {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-soft);
}

/* Alerts */
.alert {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  border: 1px solid rgba(183, 121, 31, 0.3);
  margin-bottom: 18px;
}
.alert__icon { font-size: 1.6rem; line-height: 1; }
.alert strong { color: var(--navy-700); display: block; margin-bottom: 4px; }
.alert p { margin: 0; font-size: 0.9rem; color: var(--ink-700); }
.alert__reason { margin-top: 4px !important; color: var(--ink-500) !important; }

/* Success card */
.success {
  text-align: center;
  padding: 50px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: pop 500ms var(--ease) both;
}
.success__icon {
  width: 80px; height: 80px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f9e5f, #1e7a48);
  color: var(--white);
  margin-bottom: 10px;
  box-shadow: 0 12px 30px -10px rgba(47, 158, 95, 0.5);
}
.success h3 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--navy-700);
}
.success p {
  margin: 0;
  color: var(--ink-500);
}
.success strong {
  color: var(--navy-700);
  font-family: "Cairo", monospace;
  font-variant-numeric: tabular-nums;
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

.hidden { display: none !important; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 70px 0 0;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--gold-500), var(--navy-700));
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer .brand__text strong { color: var(--white); }
.footer .brand__text small { color: rgba(255, 255, 255, 0.6); }
.footer .brand__mark { box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.5); }

.footer__about {
  margin: 18px 0 0;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.85;
  font-size: 0.92rem;
}

.footer__col h4 {
  margin: 6px 0 16px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 10px;
}
.footer__col h4::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 32px; height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.footer__col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__col a:hover { color: var(--gold-400); }
.footer__contact li { display: flex; align-items: center; gap: 10px; }
.footer__contact span:first-child { color: var(--gold-500); }

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.18);
}
.footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__bar-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer__bar-links a { color: rgba(255, 255, 255, 0.6); }
.footer__bar-links a:hover { color: var(--gold-400); }

/* ====== Spinner (submitting state) ====== */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin360 0.8s linear infinite;
}
.btn--gold .spinner { color: var(--navy-700); }
@keyframes spin360 { to { transform: rotate(360deg); } }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }

  .nav__inner.is-open + .nav__panel { /* nothing */ }
  .nav.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%; right: 0; left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav.is-open .nav__links .nav__link {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-sm);
  }
  .nav.is-open .nav__links .nav__link.is-active {
    background: rgba(201, 168, 76, 0.1);
    color: var(--navy-700);
  }
  .nav.is-open .nav__links .nav__link.is-active::after { display: none; }

  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 24px, var(--container)); }
  .brand__text small { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .form__actions { flex-direction: column; align-items: stretch; }
  .form__actions .btn { justify-content: center; }
  .footer__bar-inner { flex-direction: column; text-align: center; }
  .stat + .stat::before { display: none; }
  .hero__title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .section { padding: 60px 0; }
  .form-wrap { padding: 22px; border-radius: var(--r-lg); }
  .emirates-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .emirate { padding: 16px 12px 14px; }
  .legal-note { flex-direction: column; gap: 12px; padding: 18px; }
  .phone-input__prefix { padding: 0 12px; gap: 6px; font-size: 0.92rem; }
  .phone-input input { padding: 12px 12px; font-size: 0.95rem; }
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Selection */
::selection {
  background: var(--gold-500);
  color: var(--navy-700);
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--navy-700);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--navy-600); }
