/* Hagag Zim · IT service portal. Brand: black + gold (from the Hagag Zim logo). */
:root {
  --ink: #141414;
  --ink-2: #2B2B2B;
  --gold: #A8863A;
  --gold-2: #C9A75A;
  --gold-soft: #F3ECDD;
  --bg: #F6F4EF;
  --card: #FFFFFF;
  --line: #E3DDD0;
  --muted: #6B6B6B;
  --err: #B3261E;
  --ok: #2E7D4F;
  --shadow: 0 10px 30px rgba(20, 20, 20, .08), 0 2px 6px rgba(20, 20, 20, .05);
  --radius: 16px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Segoe UI", "Assistant", "Heebo", Arial, sans-serif; font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2 { margin: 0; line-height: 1.2; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; min-height: 340px; padding: 0 max(16px, 4vw) 96px;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.35) 45%, rgba(10,10,10,.85) 100%),
    url("assets/img/hero.jpg") center 35% / cover no-repeat, #141414;
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
}
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.logo { height: 58px; width: auto; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.user { display: flex; align-items: center; gap: 12px; font-size: 14px; background: rgba(0,0,0,.35);
        padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px); }
.user .link { color: var(--gold-2); }
.hero-text { max-width: 820px; margin: 34px auto 0; text-align: center; }
.eyebrow { letter-spacing: .32em; font-size: 12px; color: var(--gold-2); margin: 0 0 10px; font-weight: 600; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; text-shadow: 0 2px 18px rgba(0,0,0,.45); }
.hero-text p:last-child { margin: 12px auto 0; max-width: 560px; color: rgba(255,255,255,.88); font-size: 1.05rem; }

/* ---------- layout ---------- */
main { max-width: 920px; margin: 0 auto; padding: 0 16px 56px; }
.lift { position: relative; margin-top: -64px; z-index: 2; }
.card, fieldset {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin: 0 0 20px; box-shadow: var(--shadow);
}
.center { text-align: center; }
.muted { color: var(--muted); }
#viewLogin h2, #viewDone h2 { font-size: 1.6rem; margin-bottom: 8px; }

/* ---------- tiles ---------- */
.pick-wrap { background: var(--card); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); margin-bottom: 22px; }
.pick-title { font-size: 1.25rem; font-weight: 700; margin: 2px 4px 16px; }
.type-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.tile {
  position: relative; display: block; cursor: pointer; border-radius: 14px; overflow: hidden;
  aspect-ratio: 4 / 4.4; background: #222; isolation: isolate;
  box-shadow: 0 6px 18px rgba(0,0,0,.12); transition: transform .25s ease, box-shadow .25s ease;
}
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile-img { position: absolute; inset: 0; background: center / cover no-repeat; transition: transform .6s ease; z-index: -2; }
.t-service { background-image: url("assets/img/tile-service.jpg"); }
.t-onboarding { background-image: url("assets/img/tile-onboarding.jpg"); }
.t-offboarding { background-image: url("assets/img/tile-offboarding.jpg"); }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.55) 65%, rgba(0,0,0,.88) 100%);
}
.tile-body { position: absolute; inset: auto 0 0 0; padding: 18px 18px 16px; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.tile-body b { font-size: 1.35rem; font-weight: 800; letter-spacing: .2px; }
.tile-body small { font-size: .92rem; color: rgba(255,255,255,.85); }
.tile-body b::after {
  content: ""; display: block; width: 34px; height: 3px; margin-top: 8px; border-radius: 2px;
  background: var(--gold-2); transition: width .3s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.22); }
.tile:hover .tile-img { transform: scale(1.06); }
.tile:hover .tile-body b::after { width: 64px; }
.tile-check {
  position: absolute; top: 12px; left: 12px; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.25); transition: all .2s ease;
}
.tile input:checked ~ .tile-check { background: var(--gold); border-color: var(--gold); }
.tile input:checked ~ .tile-check::after {
  content: ""; position: absolute; left: 9px; top: 4px; width: 7px; height: 13px;
  border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.tile:has(input:checked) { outline: 3px solid var(--gold); outline-offset: 3px; }
.tile:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.type-pick:has(input:checked) .tile:not(:has(input:checked)) { filter: saturate(.55) brightness(.92); }

/* ---------- form sections ---------- */
fieldset { position: relative; }
legend {
  background: var(--ink); color: #fff; font-weight: 700; padding: 6px 16px; border-radius: 999px; font-size: .95rem;
}
legend::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-2); margin-inline-end: 8px; vertical-align: middle; }
.sec-sub { color: var(--muted); margin: 10px 0 4px; font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-top: 14px; }
.q { display: flex; flex-direction: column; gap: 7px; }
.q.wide { grid-column: 1 / -1; }
.q > label, .q > .qlabel { font-weight: 650; }
.req { color: var(--err); }
input[type=text], input[type=tel], input[type=email], input[type=date], textarea {
  width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; background: #FCFBF8;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(168,134,58,.15); }
::placeholder { color: #A09A8E; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.opts label { display: inline-flex; align-items: center; gap: 7px; font-weight: 400; cursor: pointer; }
.opts input { width: 18px; height: 18px; accent-color: var(--gold); }
.q.invalid input[type=text], .q.invalid input[type=tel], .q.invalid input[type=date], .q.invalid textarea { border-color: var(--err); }
.q.invalid > label, .q.invalid > .qlabel { color: var(--err); }

/* chips: clean pill buttons, no icons */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; }
.chip span {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .98rem; color: var(--ink-2);
  transition: all .15s ease;
}
.chip:hover span { border-color: var(--gold-2); background: var(--gold-soft); }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.chip input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.q.invalid .chip span { border-color: var(--err); }
/* category cards with illustrations */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat { position: relative; cursor: pointer; }
.cat input { position: absolute; opacity: 0; }
.cat span {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px 12px; height: 100%;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: all .18s ease;
}
.cat img { width: 64px; height: 64px; transition: transform .2s ease; }
.cat b { font-size: .95rem; font-weight: 650; color: var(--ink-2); text-align: center; }
.cat:hover span { border-color: var(--gold-2); box-shadow: 0 6px 16px rgba(0,0,0,.07); transform: translateY(-2px); }
.cat:hover img { transform: scale(1.06); }
.cat input:checked + span { border: 2px solid var(--gold); background: var(--gold-soft); box-shadow: 0 6px 18px rgba(168,134,58,.25); }
.cat input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.q.invalid .cat span { border-color: var(--err); }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }

/* screenshot paste / pick */
.shot { border: 2px dashed #D6CDB9; border-radius: 12px; padding: 18px; text-align: center; background: #FBF8F1; transition: all .15s; }
.shot:hover { border-color: var(--gold-2); }
.shot.has { border-style: solid; border-color: var(--gold); background: #fff; }
.shot-title { font-weight: 600; }
.shot img { max-height: 200px; border-radius: 8px; display: block; margin: 0 auto 10px; box-shadow: var(--shadow); }
.shot .pick { color: var(--gold); text-decoration: underline; cursor: pointer; }

/* ---------- actions ---------- */
.actions { text-align: center; margin-top: 6px; }
button { font: inherit; cursor: pointer; }
.primary {
  background: linear-gradient(180deg, #1E1E1E, #0E0E0E); color: #fff; border: 0; border-radius: 12px;
  padding: 14px 42px; font-weight: 700; font-size: 1.05rem; letter-spacing: .2px;
  box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 -2px 0 var(--gold); transition: transform .15s, box-shadow .15s;
}
.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.28), inset 0 -3px 0 var(--gold-2); }
.primary:disabled { opacity: .55; cursor: wait; transform: none; }
.link { background: none; border: 0; color: var(--gold); text-decoration: underline; padding: 0; }
.error { color: var(--err); font-weight: 600; }

.done-mark {
  width: 72px; height: 72px; margin: 4px auto 14px; border-radius: 50%; background: var(--gold-soft); position: relative;
  box-shadow: inset 0 0 0 3px var(--gold);
}
.done-mark::after {
  content: ""; position: absolute; left: 26px; top: 14px; width: 16px; height: 32px;
  border: solid var(--gold); border-width: 0 5px 5px 0; transform: rotate(45deg);
}

.foot { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; padding: 22px 16px 30px; letter-spacing: .3px; border-top: 1px solid var(--line); background: #fff; }
.impact-logo { height: 42px; width: auto; }

@media (max-width: 640px) {
  .hero { min-height: 270px; padding-bottom: 84px; }
  .logo { height: 44px; }
  .hero-text { margin-top: 18px; }
  .grid { grid-template-columns: 1fr; }
  .type-pick { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 16 / 9; }
  .pick-wrap, .card, fieldset { padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
