/* Public landing page — Hebrew, right-to-left, high-tech look */
:root {
  --bg-0: #060b18;
  --bg-1: #0b1530;
  --panel: rgba(13, 24, 52, 0.72);
  --panel-line: rgba(120, 170, 255, 0.18);
  --ink: #e8eefc;
  --muted: #93a3c4;
  --field: rgba(6, 12, 28, 0.65);
  --field-line: rgba(140, 170, 230, 0.25);
  --cyan: #38d6ff;
  --blue: #4f7cff;
  /* logo colours */
  --sky: #8ec5e8;
  --peach: #f2a777;
  --leaf: #b9d36b;
  --danger: #ff6b6b;
  --radius: 14px;
  --font: "Segoe UI", "Arial Hebrew", "Rubik", "Heebo", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { min-height: 100%; background: var(--bg-0); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(79, 124, 255, 0.28), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(56, 214, 255, 0.16), transparent 60%),
    radial-gradient(600px 400px at 70% 110%, rgba(242, 167, 119, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  overflow-x: hidden;
}

/* Grid + circuit layer */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
.bg-circuit { position: fixed; inset: 0; z-index: 0; pointer-events: none; width: 100%; height: 100%; opacity: 0.55; }
.bg-circuit path { fill: none; stroke: url(#trace); stroke-width: 1.2; }
.bg-circuit circle { fill: var(--cyan); }
.bg-circuit .pulse { stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 6 220; animation: travel 6s linear infinite; filter: drop-shadow(0 0 4px var(--cyan)); }
.bg-circuit .pulse.p2 { animation-duration: 8s; animation-delay: -3s; }
.bg-circuit .pulse.p3 { animation-duration: 7s; animation-delay: -5s; }
@keyframes travel { to { stroke-dashoffset: -226; } }
@media (prefers-reduced-motion: reduce) { .bg-circuit .pulse { animation: none; opacity: 0; } }

.page {
  position: relative; z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 16px 56px;
}

/* Header */
.hero { text-align: center; margin-bottom: 26px; }
.logo-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 18px;
  padding: 12px 22px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4), 0 10px 40px rgba(56, 214, 255, 0.18);
}
.logo-badge img { display: block; height: 92px; width: auto; }
.hero h1 {
  margin: 20px 0 4px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(90deg, var(--leaf), var(--sky) 45%, var(--cyan));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero p { margin: 0; color: var(--muted); }
.status-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px;
  font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--panel-line); border-radius: 999px;
  padding: 3px 12px;
  background: rgba(10, 20, 45, 0.6);
}
.status-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 8px #3ee08f; }

/* Panel */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(56,214,255,0.55), transparent 35%, transparent 65%, rgba(185,211,107,0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .grid-2 { grid-template-columns: 1fr; gap: 0; } .card { padding: 20px; } }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, legend { font-weight: 600; font-size: 0.95rem; }
.optional { color: var(--muted); font-weight: 400; font-size: 0.85rem; }

input[type="text"], input[type="tel"], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #6c7ca0; }
input[type="tel"] { direction: ltr; text-align: right; }
textarea { min-height: 140px; resize: vertical; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 214, 255, 0.18);
}
.invalid { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15) !important; }

fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { padding: 0; margin-bottom: 8px; }
.priority-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.priority-options label {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--field-line);
  background: var(--field);
  border-radius: 10px;
  padding: 11px 8px;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.priority-options input { position: absolute; opacity: 0; pointer-events: none; }
.priority-options .led { width: 9px; height: 9px; border-radius: 50%; }
.priority-options .low .led { background: var(--sky); }
.priority-options .medium .led { background: var(--peach); }
.priority-options .high .led { background: var(--danger); }
.priority-options label:has(input:checked) { border-color: var(--cyan); background: rgba(56, 214, 255, 0.12); }
.priority-options label:has(input:checked) .led { box-shadow: 0 0 10px currentColor; }
.priority-options label:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(56, 214, 255, 0.3); }

button {
  font: inherit; cursor: pointer;
  border-radius: 10px;
  border: 1px solid var(--field-line);
  background: transparent; color: var(--ink);
  padding: 10px 18px;
}
button.primary {
  width: 100%;
  padding: 13px;
  border: 0;
  font-weight: 700; font-size: 1.05rem;
  color: #04111f;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 8px 30px rgba(56, 214, 255, 0.28);
  transition: transform .1s, filter .15s;
}
button.primary:hover { filter: brightness(1.1); }
button.primary:active { transform: translateY(1px); }
button:disabled { opacity: 0.6; cursor: wait; }
button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.error-box {
  color: #ffd6d6;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.confirmation { text-align: center; padding: 40px 24px; }
.confirmation .check {
  width: 64px; height: 64px; margin: 0 auto 16px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 30px; color: #04111f;
  background: linear-gradient(135deg, var(--leaf), var(--cyan));
  box-shadow: 0 0 30px rgba(56, 214, 255, 0.4);
}
.confirmation h2 { margin: 0 0 8px; }
.confirmation p { color: var(--muted); margin: 0; }
.ticket-number {
  font-size: 2.6rem; font-weight: 800; margin: 6px 0 14px;
  direction: ltr;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(56, 214, 255, 0.5);
  font-variant-numeric: tabular-nums;
}
.confirmation button { margin-top: 22px; }

footer { text-align: center; color: #5f6f92; font-size: 0.8rem; margin-top: 22px; }
