:root {
  --ink: #0c0620;
  --ink-2: #140b31;
  --ink-3: #1d1142;
  --cream: #f4f1ff;
  --accent: #7A50EE;
  --accent-dark: #6a3fd0;
  --violet: #7A50EE;
  --coral: #E05842;
  --coral-dark: #c94733;
  --font: "Dubai", "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html[lang="en"] {
  --font: "Optima", "Segoe UI", "Century Gothic", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; cursor: url("../elements/star2-cursor.png") 32 32, auto; }

body {
  font-family: var(--font);
  background:
    radial-gradient(700px circle at 88% 12%, rgba(122,80,238,0.22), transparent 60%),
    radial-gradient(600px circle at 8% 95%, rgba(224,88,66,0.14), transparent 60%),
    var(--ink);
  color: var(--cream);
  min-height: 100svh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--cream); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: inherit; }
button { font-family: inherit; cursor: inherit; }

.container { width: min(1100px, 92%); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 30px;
  font-size: 17px; font-weight: 500; line-height: 1;
  border-radius: 25px; border: none;
  color: #fff; background: var(--accent);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(122,80,238,0.35); }
.btn.coral { background: var(--coral); }
.btn.coral:hover { background: var(--coral-dark); box-shadow: 0 12px 30px rgba(224,88,66,0.35); }

/* ---------- Header (same as home) ---------- */
.header {
  position: fixed; inset-inline: 12px; top: 12px; z-index: 100;
  background: transparent;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  transition: box-shadow 0.4s ease, background 0.4s ease;
}
.header.scrolled { background: rgba(12,6,32,0.9); box-shadow: 0 14px 40px rgba(0,0,0,0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 22px; }
/* contact page is dark throughout — logo stays white always */
.brand img { height: 54px; width: auto; filter: brightness(0) invert(1); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 12px 16px; font-size: 16px; font-weight: 700; color: var(--cream);
  opacity: 0.85; transition: color 0.3s, opacity 0.3s;
}
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 16px; bottom: 6px;
  height: 2px; width: calc(100% - 32px);
  background: var(--coral); transform: scaleX(0); transform-origin: 100% 50%;
  transition: transform 0.45s var(--ease);
}
.nav a:hover, .nav a.active { color: #fff; opacity: 1; }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); transform-origin: 0% 50%; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  padding: 10px 18px; border-radius: 25px; border: 1.5px solid rgba(122,80,238,0.6);
  background: transparent; color: var(--cream); font-size: 15px; font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.lang-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.header .btn { padding: 11px 22px; font-size: 15px; }

.burger {
  display: none; width: 46px; height: 42px; border-radius: 8px; border: none;
  background: var(--accent); align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.35s var(--ease), opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(12, 6, 32, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity 0.45s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--cream); font-size: 27px; font-weight: 600; padding: 10px 20px; transition: color 0.3s; }
.mobile-menu a:hover { color: var(--coral); }

/* ---------- Page head ---------- */
.page-head { padding: 170px 0 46px; }
.page-head h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800; line-height: 1.2; color: var(--coral);
}
.page-head h1 .dot { color: var(--coral); }
.page-head p {
  margin-top: 16px; max-width: 640px;
  font-size: 18px; line-height: 1.95; color: rgba(244,241,255,0.75);
}
.page-head .email-line { margin-top: 14px; font-size: 16px; color: rgba(244,241,255,0.65); }
.page-head .email-line a { color: var(--coral); font-weight: 600; }
.page-head .email-line a:hover { text-decoration: underline; }

/* ---------- Form card ---------- */
.form-wrap { padding-bottom: 110px; }
.form-card {
  background: rgba(244,241,255,0.03);
  border: 1px solid rgba(122,80,238,0.22);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 56px);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.form-card h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; color: #fff; margin-bottom: 34px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 26px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 15.5px; font-weight: 600; color: rgba(244,241,255,0.85); }

.field input, .field select, .field textarea {
  font-family: inherit; font-size: 16px; color: var(--cream);
  background: rgba(244,241,255,0.05);
  border: 1px solid rgba(244,241,255,0.14);
  border-radius: 16px;
  padding: 15px 18px;
  outline: none; width: 100%;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(244,241,255,0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  background: rgba(122,80,238,0.08);
  box-shadow: 0 0 0 4px rgba(122,80,238,0.15);
}
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23f4f1ff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 18px center;
  cursor: pointer;
}
html[dir="ltr"] .field select { background-position: right 18px center; }
.field select option { background: var(--ink-2); color: var(--cream); }
.field textarea { min-height: 180px; resize: vertical; }

.form-foot { margin-top: 26px; display: flex; flex-direction: column; gap: 26px; }
.check-line { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: rgba(244,241,255,0.8); }
.check-line input {
  width: 20px; height: 20px; accent-color: var(--coral); cursor: pointer; flex-shrink: 0;
}
.form-foot .btn { align-self: flex-start; padding: 16px 44px; font-size: 17px; font-weight: 600; }

/* success banner */
.sent-banner {
  display: none;
  margin-bottom: 26px; padding: 16px 22px;
  background: rgba(122,80,238,0.15); border: 1px solid rgba(122,80,238,0.45);
  border-radius: 14px; font-size: 16px; color: var(--cream);
}
.sent-banner.show { display: block; }
.sent-banner.error-banner {
  background: rgba(224,88,66,0.15); border-color: rgba(224,88,66,0.45);
}

/* ---------- Info cards ---------- */
.info-cards {
  margin-top: 26px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
}
.info-card {
  background: rgba(244,241,255,0.03);
  border: 1px solid rgba(122,80,238,0.22);
  border-radius: 18px;
  padding: 30px 34px;
  display: flex; flex-direction: column; gap: 12px;
}
.info-label { font-size: 15px; font-weight: 600; color: var(--accent); }
.info-value { font-size: 19px; font-weight: 500; color: #fff; line-height: 1.8; }
a.info-value { transition: color 0.3s; width: fit-content; }
a.info-value:hover { color: var(--coral); }
html[dir="rtl"] a.info-value { align-self: flex-start; }

/* ---------- Footer strip ---------- */
.footer-bottom {
  border-top: 1px solid rgba(244,241,255,0.12);
  padding: 24px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14.5px; color: rgba(244,241,255,0.55);
}
.footer-bottom a { color: rgba(244,241,255,0.75); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--coral); }

/* Full footer styles removed for contact page (uses simplified footer) */

@media (max-width: 1080px) {
  .nav { display: none; }
  .header .btn { display: none; }
  .burger { display: flex; }
}
@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
  .info-cards { grid-template-columns: 1fr; }
  .page-head { padding: 130px 0 30px; }
  .form-wrap { padding-bottom: 60px; }
  .form-card { padding: 24px 20px; }
  .form-foot .btn { align-self: stretch; }
  .info-card { padding: 22px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
