:root {
  --bg1: #0f172a; /* slate-900 */
  --bg2: #111827cc;
  --primary: #7c3aed; /* violet-600 */
  --primary-2: #06b6d4; /* cyan-500 */
  --accent: #22d3ee; /* cyan-400 */
  --success: #10b981; /* emerald-500 */
  --danger: #ef4444; /* red-500 */
  --card: #0b1224cc;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --glass: blur(14px) saturate(140%);
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .06);
  --border: 1px solid rgba(255, 255, 255, .09);
  --focus: 0 0 0 4px rgba(124, 58, 237, .25);
}

* { box-sizing: border-box }
html, body { height: 100% }

body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(124, 58, 237, .24), transparent 50%),
    radial-gradient(1000px 600px at 10% 110%, rgba(34, 211, 238, .18), transparent 50%),
    linear-gradient(180deg, #0b1020, #0a0f1d 60%, #060a16);
  overflow-x: hidden;
}

/* animated orbs */
.orb {
  position: fixed;
  inset: auto;
  z-index: -1;
  filter: blur(60px);
  opacity: .55;
  mix-blend-mode: screen;
  pointer-events: none;
}
.orb.o1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle at 30% 30%, #7c3aed, transparent 60%);
  right: -200px; top: -200px;
  animation: float1 20s ease-in-out infinite;
}
.orb.o2 {
  width: 520px; height: 520px;
  background: radial-gradient(circle at 60% 40%, #22d3ee, transparent 60%);
  left: -180px; bottom: -160px;
  animation: float2 24s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) } 50% { transform: translate(-40px, 20px) } }
@keyframes float2 { 0%,100% { transform: translate(0,0) } 50% { transform: translate(30px, -25px) } }

/* header */
.header {
  max-width: 1100px; margin: 28px auto 10px; padding: 0 18px;
  display: flex; align-items: center; gap: 16px;
}
.logo { height: 54px; width: auto; filter: drop-shadow(0 6px 18px rgba(34, 211, 238, .45)); }
.brand h1 { margin: 0; font-size: clamp(22px, 4vw, 28px); font-weight: 800; letter-spacing: .3px; }
.brand p { margin: 2px 0 0; color: var(--muted) }

/* card */
.card {
  max-width: 1100px; margin: 18px auto 60px; padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: var(--glass);
}

/* lead */
.lead { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; align-items: center; padding: 12px 6px 8px; }
.lead .copy h2 { margin: 0 0 6px; font-size: clamp(22px, 3.6vw, 26px); font-weight: 800 }
.lead .copy p { margin: 0; color: var(--muted); line-height: 1.9 }
.lead .badge {
  display: inline-flex; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 999px;
  background: linear-gradient(90deg, rgba(124, 58, 237, .25), rgba(34, 211, 238, .25));
  border: 1px solid rgba(255, 255, 255, .12); font-weight: 700; font-size: 14px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

/* progress */
.progress { margin: 22px 6px 0; position: relative; padding-top: 20px; }
.bar { height: 6px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.bar .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .35s ease; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted) }
.step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.step .dot {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(180deg, rgba(124, 58, 237, .2), rgba(34, 211, 238, .2));
  border: 1px solid rgba(255, 255, 255, .12); color: #fff; box-shadow: var(--shadow);
}
.step.active .dot, .step.done .dot { background: linear-gradient(180deg, var(--primary), var(--primary-2)) }
.step.done .dot { box-shadow: 0 0 0 4px rgba(16, 185, 129, .25), var(--shadow) }

/* form */
form { margin-top: 22px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.col-12 { grid-column: span 12 }
.col-6 { grid-column: span 12 }
.col-4 { grid-column: span 12 }
.col-3 { grid-column: span 12 }
@media(min-width:720px){
  .col-6 { grid-column: span 6 }
  .col-4 { grid-column: span 4 }
  .col-3 { grid-column: span 3 }
}

.field {
  background: rgba(255,255,255,.03);
  border: var(--border); border-radius: 14px; padding: 12px 14px 10px;
  transition: box-shadow .2s, border-color .2s, background .2s; position: relative;
}
.field:focus-within { box-shadow: var(--focus); border-color: rgba(124, 58, 237, .6); background: rgba(255,255,255,.05) }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; background: transparent; border: none; outline: none; color: var(--text); font-size: 16px;
}
textarea { min-height: 120px; resize: vertical }

.inline { display: flex; gap: 10px; align-items: center }
.tag-hint { font-size: 12px; color: var(--muted); margin-top: 6px }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px }
.chip { padding: 6px 10px; background: rgba(124, 58, 237, .17); border: 1px solid rgba(124, 58, 237, .35); border-radius: 999px; font-size: 12px }

.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.03); border: 1px dashed rgba(255,255,255,.12); padding: 12px; border-radius: 12px; }
.check input { transform: scale(1.35); accent-color: var(--primary); margin-top: 3px }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px }

/* buttons */
.actions { display: flex; justify-content: space-between; margin-top: 18px; gap: 10px }
.btn {
  appearance: none; border: none; border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: 16px;
  color: #0b1020; background: linear-gradient(90deg, var(--accent), var(--primary)); cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 211, 238, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .08s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px) }
.btn.secondary {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  color: var(--text); border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow)
}
.note { font-size: 12px; color: var(--muted); margin-top: 4px }
.error {
  color: #fff; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239,68,68,.5);
  padding: 10px 12px; border-radius: 10px; display: none;
}
.hidden { display: none }

/* review card */
.review { border: 1px dashed rgba(255,255,255,.16); border-radius: 14px; padding: 12px 14px; background: rgba(255,255,255,.03) }
.review ul { margin: 8px 0 0; padding: 0 18px }

footer { max-width: 1100px; margin: 20px auto 50px; padding: 0 18px; text-align: center; color: var(--muted); font-size: 13px }

/* file input */
.file { position: relative; overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.file input[type="file"] { opacity: 0; position: absolute; inset: 0; cursor: pointer }
.file .label {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px;
  border-radius: 10px; border: 1px dashed rgba(255,255,255,.16);
}
.file .name { color: var(--muted); font-size: 14px }

/* responsiveness */
@media (max-width:820px) { .lead { grid-template-columns: 1fr; } }

/* === Country Combobox with Flags === */
.combo { position: relative }
.combo-input { width: 100%; background: transparent; border: none; outline: none; color: var(--text); font-size: 16px; }
.combo-panel {
  position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 50; background: rgba(11,16,32,.98);
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: var(--shadow);
  max-height: 320px; overflow: auto; padding: 8px; display: none;
}
.combo.open .combo-panel { display: block; }
.combo-option {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  cursor: pointer; background: transparent; border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.combo-option:hover, .combo-option.active { background: rgba(124,58,237,.08); border-color: rgba(124,58,237,.35); }
.combo-option .flag { font-size: 20px; line-height: 1 }
.combo-option .name { font-weight: 700 }
.combo-option .muted { margin-inline-start: auto; color: var(--muted); font-size: 13px }
.combo-empty { padding: 14px; text-align: center; color: var(--muted); font-size: 14px }
