:root{
  --bg:#000000;
  --panel:rgba(255,255,255,0.055);
  --panel-solid:#0a0a0c;
  --line:rgba(255,255,255,0.16);
  --line-soft:rgba(255,255,255,0.09);
  --white:#ffffff;
  --white-soft:rgba(255,255,255,0.84);
  --white-faint:rgba(255,255,255,0.58);
  --accent:#8b2fe8;
  --accent-2:#c084fc;
  --accent-soft:rgba(139,47,232,0.35);
  --error:#ff8a8a;
  --font-d:'Fraunces', serif;
  --font-logo:'Bodoni Moda', 'Fraunces', serif;
  --font-b:'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar:'Noto Sans Arabic', 'Manrope', sans-serif;
  --font-he:'Noto Sans Hebrew', 'Manrope', sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
  --radius:20px;
}
*{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--white);
  font-family:var(--font-b);
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
}
html[dir="rtl"] body{ font-family:var(--font-ar); }
html:lang(he) body{ font-family:var(--font-he); }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
a{ color:inherit; text-decoration:none; }
input, textarea{ font-family:inherit; }
::selection{ background:var(--accent); color:#0a0a0d; }

.hidden-force{ display:none !important; }

/* ================= LANGUAGE SWITCHER ================= */
.lang-switch{
  position:fixed; top:18px; z-index:200;
  inset-inline-end:18px;
  font-size:14px;
}
.lang-current{
  display:flex; align-items:center; gap:8px;
  padding:9px 14px 9px 10px;
  background:rgba(20,20,24,0.55);
  border:1px solid var(--line);
  border-radius:100px;
  backdrop-filter:blur(14px) saturate(140%);
  -webkit-backdrop-filter:blur(14px) saturate(140%);
  color:var(--white);
  font-weight:600;
  min-height:44px;
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.lang-current:hover{ border-color:rgba(255,255,255,0.32); background:rgba(28,28,33,0.7); }
.lang-flag{ width:20px; height:20px; border-radius:50%; overflow:hidden; display:flex; align-items:center; justify-content:center; flex-shrink:0; box-shadow:0 0 0 1px rgba(255,255,255,0.15); }
.lang-flag svg{ width:100%; height:100%; display:block; }
.lang-caret{ opacity:.6; transition:transform .25s var(--ease); }
.lang-switch.open .lang-caret{ transform:rotate(180deg); }

.lang-list{
  position:absolute; top:calc(100% + 8px);
  inset-inline-end:0;
  list-style:none; width:340px;
  background:rgba(16,16,20,0.9);
  border:1px solid var(--line);
  border-radius:16px;
  backdrop-filter:blur(20px) saturate(150%);
  -webkit-backdrop-filter:blur(20px) saturate(150%);
  padding:8px;
  opacity:0; transform:translateY(-8px) scale(.98);
  pointer-events:none;
  transition:opacity .25s var(--ease), transform .25s var(--ease);
  display:grid; grid-template-columns:1fr 1fr; gap:3px;
  max-height:92vh; overflow-y:auto;
}
.lang-switch.open .lang-list{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.lang-option{
  display:flex; align-items:center; gap:9px;
  padding:9px 10px; border-radius:10px; min-height:44px;
  font-weight:600; color:var(--white-soft); font-size:13.5px;
  transition:background .2s var(--ease), color .2s var(--ease);
}
.lang-option:hover{ background:rgba(255,255,255,0.08); color:var(--white); }
.lang-option.active{ background:rgba(139,47,232,0.14); color:var(--white); }
.lang-option .lang-flag{ width:20px; height:20px; flex-shrink:0; }
.lang-option .lang-name{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width:640px){
  .lang-switch{ top:12px; inset-inline-end:12px; font-size:13px; }
  .lang-current{ padding:8px 12px 8px 8px; }
  .lang-name{ display:none; }
  .lang-list{ width:calc(100vw - 24px); max-width:360px; grid-template-columns:1fr 1fr; }
  .lang-option .lang-name{ display:inline; }
}

/* ================= PROGRESS RAIL ================= */
.progress-rail{ position:fixed; top:0; inset-inline:0; height:3px; z-index:190; background:rgba(255,255,255,0.06); opacity:0; transition:opacity .4s var(--ease); }

/* ================= SPLASH — GARUDA wordmark reveal ================= */
.splash{
  position:fixed; inset:0; z-index:300; background:#000;
  display:flex; align-items:center; justify-content:center;
  opacity:1; transition:opacity .7s var(--ease);
}
.splash.hide{ opacity:0; pointer-events:none; }
.splash-word{
  font-family:var(--font-logo); font-weight:700; font-size:clamp(46px,11vw,104px);
  letter-spacing:.12em; text-indent:.12em; color:#fff;
  clip-path:inset(0 100% 0 0); transform:scale(.9) translateY(8px); filter:blur(7px);
  animation:splashReveal 1.15s cubic-bezier(.65,0,.15,1) forwards;
}
@keyframes splashReveal{
  0%{ clip-path:inset(0 100% 0 0); transform:scale(.9) translateY(8px); filter:blur(7px); }
  70%{ filter:blur(0); }
  100%{ clip-path:inset(0 0% 0 0); transform:scale(1) translateY(0); filter:blur(0); text-shadow:0 0 46px rgba(255,255,255,.4); }
}
@media (prefers-reduced-motion: reduce){
  .splash-word{ animation:none; clip-path:none; transform:none; filter:none; text-shadow:0 0 46px rgba(255,255,255,.4); }
}
.progress-rail.show{ opacity:1; }
.progress-fill{ height:100%; width:0%; background:linear-gradient(90deg,#6b1fc9,var(--accent)); transition:width .35s var(--ease); }

.intro-hero-title{
  font-family:var(--font-d); font-weight:500; color:var(--white);
  font-size:clamp(26px,4.6vw,44px); line-height:1.14; letter-spacing:-.01em; max-width:15em;
  margin:0 auto 18px;
}
.intro-hero-subtitle{ max-width:34em; margin:0 auto; color:var(--white-soft); font-size:15.5px; line-height:1.65; }
.intro-divider{ width:44px; height:2px; background:var(--accent); border-radius:2px; margin:30px auto; opacity:.6; }

/* ================= BUTTONS ================= */
.btn-primary{
  margin-top:32px; padding:16px 34px; border-radius:100px; min-height:44px;
  background:linear-gradient(120deg,var(--accent-2),var(--accent));
  color:#0c0c14; font-weight:700; font-size:14.5px; letter-spacing:.02em;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow:0 10px 34px rgba(139,47,232,.22);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 16px 44px rgba(139,47,232,.34); }
.btn-primary:disabled{ opacity:.5; cursor:not-allowed; transform:none; }
.btn-ghost{
  padding:16px 26px; border-radius:100px; min-height:44px;
  border:1.5px solid var(--line); color:var(--white-soft); font-weight:700; font-size:14.5px;
  transition:border-color .25s var(--ease), color .25s var(--ease);
}
.btn-ghost:hover{ border-color:rgba(255,255,255,.4); color:var(--white); }
.btn-ghost:disabled{ opacity:.35; cursor:not-allowed; }

/* ================= APP / SCREENS ================= */
.app{ position:relative; background:var(--bg); min-height:100vh; }
.screen{ min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:110px 20px 60px; }
/* CRITICAL: [hidden] must win over .screen{display:flex} — without this rule every
   screen (intro/form/review/success/error) renders stacked at once regardless of
   the "hidden" attribute, because same-specificity rules are decided by source order. */
.screen[hidden]{ display:none; }

.card{
  width:100%; max-width:680px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:var(--radius);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  padding:40px 36px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  animation:cardIn .5s var(--ease);
}
@keyframes cardIn{ from{ opacity:0; transform:translateY(14px);} to{ opacity:1; transform:translateY(0);} }

.tag{ font-size:12px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--accent); margin-bottom:16px; }

.intro-card{ text-align:center; }
.intro-hero-subtitle, .intro-text{ margin-left:auto; margin-right:auto; }

.brand-tag{
  font-family:var(--font-logo); font-weight:700; font-size:24px; letter-spacing:.12em;
  text-transform:uppercase; color:var(--white); margin-bottom:18px; text-align:center;
  text-shadow:0 0 30px rgba(139,47,232,.35);
}
.screen-title{ font-family:var(--font-d); font-weight:500; font-size:clamp(24px,3.4vw,34px); line-height:1.2; margin-bottom:20px; }
.intro-text{ color:var(--white-soft); font-size:15.5px; line-height:1.7; }
.intro-actions{ display:flex; justify-content:space-between; align-items:center; gap:14px; margin-top:32px; }
.intro-actions--single{ justify-content:center; }
.intro-actions--single .btn-primary{ min-width:220px; }
.intro-actions .btn-primary{ margin-top:0; }

/* ---- form topbar ---- */
.form-topbar{ width:100%; max-width:680px; margin-bottom:14px; }
.progress-label{ font-size:12.5px; font-weight:700; color:var(--white-faint); letter-spacing:.03em; }

.section-tag{ font-size:12px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--accent); margin-bottom:22px; }

.addons-banner{
  margin-bottom:26px; padding:20px 22px; border-radius:16px;
  background:linear-gradient(135deg, rgba(139,47,232,0.16), rgba(192,132,252,0.06));
  border:1.5px solid rgba(139,47,232,0.35);
}
.addons-badge{
  font-family:var(--font-d); font-weight:700; font-size:19px; letter-spacing:.05em;
  text-transform:uppercase; color:var(--white); margin-bottom:8px;
  text-shadow:0 0 24px rgba(139,47,232,.4);
}
.addons-intro{ color:var(--white-soft); font-size:14px; line-height:1.6; }

.questions-wrap{ display:flex; flex-direction:column; gap:34px; }
.q-block{ animation:qIn .45s var(--ease); }
@keyframes qIn{ from{ opacity:0; transform:translateY(10px);} to{ opacity:1; transform:translateY(0);} }
.q-label{ font-family:var(--font-d); font-weight:500; font-size:19px; line-height:1.4; margin-bottom:6px; }
.q-label .req{ color:var(--accent); margin-inline-start:4px; }
.q-hint{ color:var(--white-faint); font-size:13.5px; line-height:1.5; margin-bottom:10px; }
.q-example{ color:var(--white-faint); font-size:12.5px; line-height:1.5; margin-top:8px; font-style:italic; }
.q-example b{ font-style:normal; font-weight:700; opacity:.85; }

.q-input, .q-textarea{
  width:100%; background:rgba(255,255,255,0.04);
  border:1.5px solid var(--line); border-radius:12px;
  padding:13px 15px; color:var(--white); font-size:15px;
  transition:border-color .25s var(--ease), background .25s var(--ease);
  min-height:44px;
}
.q-textarea{ resize:vertical; min-height:96px; line-height:1.55; }
.q-input:focus, .q-textarea:focus{ outline:none; border-color:var(--accent); background:rgba(139,47,232,0.06); }
.q-input.error, .q-textarea.error, .q-datepicker.error .q-date-trigger, .q-date-trigger.error{ border-color:var(--error); }

.q-multifields{ display:flex; flex-direction:column; gap:10px; }
.q-multifields input{ width:100%; }

/* ---- custom localized date picker ---- */
.q-datepicker{ position:relative; }
.q-date-trigger{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px;
  background:rgba(255,255,255,0.04); border:1.5px solid var(--line); border-radius:12px;
  padding:13px 15px; color:var(--white); font-size:15px; min-height:44px;
  transition:border-color .25s var(--ease), background .25s var(--ease);
}
.q-datepicker.open .q-date-trigger, .q-date-trigger:hover{ border-color:var(--accent); background:rgba(139,47,232,0.06); }
.q-date-text{ text-align:start; }
.q-date-text:empty::before{ content:''; }
.q-date-icon{ opacity:.6; flex-shrink:0; }

.q-date-popup{
  position:absolute; top:calc(100% + 8px); inset-inline-start:0; z-index:30;
  width:300px; max-width:calc(100vw - 40px);
  background:rgba(16,16,20,0.96); border:1px solid var(--line); border-radius:16px;
  padding:14px; backdrop-filter:blur(20px) saturate(150%);
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
}
.q-cal-header{ display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.q-cal-label{ font-weight:700; font-size:14px; color:var(--white); text-transform:capitalize; }
.q-cal-nav{
  width:32px; height:32px; border-radius:50%; font-size:18px; color:var(--white-soft);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.q-cal-nav:hover{ background:rgba(255,255,255,0.1); color:var(--white); }
.q-cal-weekdays{ display:grid; grid-template-columns:repeat(7,1fr); margin-bottom:4px; }
.q-cal-weekdays span{ text-align:center; font-size:11px; color:var(--white-faint); text-transform:capitalize; padding:4px 0; }
.q-cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.q-cal-cell{
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  border-radius:8px; font-size:13.5px; color:var(--white-soft);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.q-cal-cell.empty{ pointer-events:none; }
.q-cal-cell:not(.empty):hover{ background:rgba(255,255,255,0.1); color:var(--white); }
.q-cal-cell.today{ color:var(--accent-2); font-weight:700; }
.q-cal-cell.selected{ background:linear-gradient(120deg,var(--accent-2),var(--accent)); color:#0c0c14; font-weight:700; }

.q-options{ display:flex; flex-direction:column; gap:10px; }
.q-option{
  display:flex; align-items:center; gap:12px;
  padding:13px 16px; border-radius:12px; border:1.5px solid var(--line);
  background:rgba(255,255,255,0.02); min-height:44px;
  transition:border-color .22s var(--ease), background .22s var(--ease), transform .15s var(--ease);
}
.q-option:hover{ border-color:rgba(255,255,255,.3); }
.q-option.selected{ border-color:var(--accent); background:rgba(139,47,232,0.1); }
.q-option-mark{
  width:20px; height:20px; flex-shrink:0; border:1.5px solid var(--line-soft);
  display:flex; align-items:center; justify-content:center; transition:all .2s var(--ease);
}
.q-option[data-kind="radio"] .q-option-mark{ border-radius:50%; }
.q-option[data-kind="checkbox"] .q-option-mark{ border-radius:6px; }
.q-option.selected .q-option-mark{ border-color:var(--accent); background:var(--accent); }
.q-option-mark svg{ width:12px; height:12px; opacity:0; transform:scale(.6); transition:all .18s var(--ease); }
.q-option.selected .q-option-mark svg{ opacity:1; transform:scale(1); }
.q-option-mark .radio-dot{ width:8px; height:8px; border-radius:50%; background:#0c0c14; opacity:0; transform:scale(.5); transition:all .18s var(--ease); }
.q-option.selected .q-option-mark .radio-dot{ opacity:1; transform:scale(1); }
.q-option-text{ font-size:14.5px; font-weight:500; }
.q-option.disabled{ opacity:.35; pointer-events:none; }

.q-other-input{ margin-top:2px; }
.q-counter{ font-size:12px; color:var(--white-faint); margin-top:2px; }
.q-error{ display:none; color:var(--error); font-size:12.5px; margin-top:8px; font-weight:600; }
.q-error.show{ display:block; }

.form-nav{
  width:100%; max-width:680px; display:flex; justify-content:space-between; align-items:center;
  margin-top:24px; gap:14px; position:sticky; bottom:0; z-index:20;
  background:linear-gradient(to top, var(--bg) 55%, transparent); padding:16px 0 8px;
}

/* ---- review ---- */
.review-list{ display:flex; flex-direction:column; gap:0; margin-bottom:30px; max-height:52vh; overflow-y:auto; }
.review-section{ padding:18px 0; border-bottom:1px solid var(--line-soft); }
.review-section:last-child{ border-bottom:none; }
.review-section-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.review-section-title{ font-family:var(--font-d); font-size:16px; color:var(--accent); }
.review-edit{ font-size:12.5px; font-weight:700; color:var(--white-faint); border-bottom:1px solid currentColor; padding-bottom:1px; }
.review-edit:hover{ color:var(--white); }
.review-q{ padding:6px 0; font-size:13.5px; }
.review-q b{ display:block; color:var(--white-faint); font-weight:600; margin-bottom:2px; }
.review-q span{ color:var(--white-soft); }
.review-q span.skipped{ font-style:italic; opacity:.55; }

.btn-submit{ width:100%; }
.btn-submit.sending{ opacity:.7; pointer-events:none; }
.review-actions{ display:flex; justify-content:space-between; align-items:center; gap:14px; }
.review-actions .btn-primary{ flex-grow:1; margin-top:0; }

/* ---- success ---- */
.success-card{ text-align:center; }
.success-orb{
  width:70px; height:70px; margin:0 auto 26px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 60%, #5a17a8 100%);
  box-shadow:0 0 50px rgba(139,47,232,.5);
  animation:orbPulse 2.4s ease-in-out infinite;
}
@keyframes orbPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.08); } }
.success-text{ color:var(--white-soft); font-size:15px; line-height:1.65; margin-bottom:8px; }

.error-card{ text-align:center; }
.error-screen-text{ color:var(--white-soft); font-size:15px; line-height:1.65; margin-bottom:4px; }

/* ================= FOOTER ================= */
.site-footer{ padding:70px 20px 40px; text-align:center; border-top:1px solid var(--line-soft); }
.footer-inner{ max-width:680px; margin:0 auto; }
.footer-name{ font-family:var(--font-logo); font-weight:700; letter-spacing:.1em; font-size:20px; margin-bottom:10px; }
.footer-tagline{ color:var(--white-faint); font-size:13.5px; margin-bottom:26px; }
.footer-contacts{ display:flex; flex-wrap:wrap; justify-content:center; gap:20px; font-size:13px; font-weight:600; color:var(--white-soft); margin-bottom:26px; }
.footer-contacts a{ transition:color .2s; }
.footer-contacts a:hover{ color:var(--accent); }
.footer-contacts span{ color:var(--white-faint); font-weight:500; margin-inline-end:4px; }
.powered-by{
  display:inline-block; font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--white-faint); border:1px solid var(--line-soft); border-radius:100px; padding:9px 18px;
  transition:border-color .25s var(--ease), color .25s var(--ease);
}
.powered-by:hover{ border-color:rgba(255,255,255,.4); color:var(--white); }

/* ================= RTL ADJUSTMENTS ================= */
html[dir="rtl"] .q-example{ font-style:normal; }
html[dir="rtl"] .review-edit{ direction:rtl; }

/* ================= ACCESSIBILITY / FOCUS ================= */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .q-option:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px;
}

/* ================= RESPONSIVE ================= */
@media (max-width:640px){
  .card{ padding:28px 20px; border-radius:16px; }
  .screen{ padding:100px 14px 50px; }
  .intro-hero-title{ font-size:clamp(24px,7vw,34px); }
  .form-nav{ padding:14px 0 6px; }
}

@media (prefers-reduced-motion:reduce){
  html{ scroll-behavior:auto; }
  .card, .q-block, .success-orb{ animation:none; }
}
